Re: OpenSSL Locks

2013-12-11 Thread Jeffrey Walton
On Wed, Dec 11, 2013 at 10:25 AM, Maxim Dounin wrote: > Hello! > > On Wed, Dec 11, 2013 at 05:55:16AM -0500, Jeffrey Walton wrote: > >> I need to do some additional processing with OpenSSL in a custom >> module. I noticed ngingx does not set any locks in ngx_ssl_init (from >> ngx_event_openssl.c).

Re: OpenSSL Locks

2013-12-11 Thread Maxim Dounin
Hello! On Wed, Dec 11, 2013 at 05:55:16AM -0500, Jeffrey Walton wrote: > I need to do some additional processing with OpenSSL in a custom > module. I noticed ngingx does not set any locks in ngx_ssl_init (from > ngx_event_openssl.c). > > A few questions: > > 1) Should lock installation be guard

OpenSSL Locks

2013-12-11 Thread Jeffrey Walton
I need to do some additional processing with OpenSSL in a custom module. I noticed ngingx does not set any locks in ngx_ssl_init (from ngx_event_openssl.c). A few questions: 1) Should lock installation be guarded on NGX_THREADS or something else? 2) Where is most appropirate to initialize the lo