In my code, the server thread listen for incoming connection request, when there is a new request, it spawns a new client thread to handle the request. Does it need synchronization between multiple client threads by following the way pointed out here https://www.openssl.org/support/faq.html#PROG1? Is there a possibility that some OpenSSL structures are being shared between the threads, right?
2014-03-26 17:37 GMT+08:00 Bodo Moeller <bmoel...@acm.org>: > jeff <jeff.2234...@gmail.com>: > > I keep getting some application crash in openssl module, I checked the >> dumps and stacks and found that although the stacks vary, the ssl_accept >> function is found on all of them, below are some of exmaples. I google the >> related information about this, looks like there is some problem when >> calling ssl_accept under multi-thread circumstance. My question is, is it >> possible that calling ssl_accept in multi-threading circumstance will >> result in app to crash? >> > > Yes -- a single SSL object can't be used concurrently by multiple threads; > see https://www.openssl.org/support/faq.html#PROG1. > > Bodo > >