I'm having a problem where my server stops accepting connections sometimes after thousands of successful connections. I create a global SSL_CTX once, and then an SSL object for every connection, which I dispose every time. I'm using version 1.0.2h.
Once the problem occurs, the only way to get around it is to restart the server, basically recreating the context. As far as I can tell, the context "looks" fine, and the so does the session object. I have watched the network traffic using wireshark, and every packet looks fine until the handshake fails.
Does anyone have any suggestions on how to debug this issue?
Thanks.
来源:https://stackoverflow.com/questions/39080905/openssl-handshake-failures-after-thousands-of-successful-connections