wasphin opened a new pull request, #3657: URL: https://github.com/apache/brpc/pull/3657
### What problem does this PR solve? Problem Summary: Printing an SSL session obtains an owning peer-certificate reference, and printing a certificate allocates a BIO. Repeated diagnostic output retains both resources. ### What is changed and the side effects? Changed: - Manage the peer certificate and diagnostic BIO with scoped owners. - Add an in-memory TLS regression that verifies the peer certificate is released after repeated diagnostic output. Side effects: - Performance effects: Releases temporary resources after each diagnostic call. - Breaking backward compatibility: None for valid inputs. --- ### Check List: - [x] Changes compile locally. - [x] Added focused regression coverage. - Please follow [Contributor Covenant Code of Conduct](https://github.com/apache/brpc/blob/master/CODE_OF_CONDUCT.md). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
