[openssl-users] Crash in SSL_do_handshake: s->method->ssl_renegotiate_check(s)
Graham Leggett
minfrin at sharp.fm
Sat Apr 4 23:32:02 UTC 2015
On 04 Apr 2015, at 9:46 PM, Michael Clark <michael at metaparadigm.com> wrote:
> I am having an issue where the server crashes on subsequent connections
> *if* I close the connection file descriptor. See the note in
> openssl_async_echo_server.cc on line 239. If I leak a file descriptor
> and the next connection uses a new fd then the server works fine. Does
> openssl have an internal map of file descriptors? Am I freeing the
> connection correctly?
In the past when I have built async SSL code, I’ve used memory pools from the Apache Portable runtime (APR) to make sure that all the created resources get properly cleaned up when connections are closed.
You need to make sure everything you create is properly released when done. If you don’t, you either leak or crash.
Regards,
Graham
—
More information about the openssl-users
mailing list