OpenSSL Locks

Jeffrey Walton noloader at
Wed Dec 11 10:55:16 UTC 2013

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

A few questions:

1) Should lock installation be guarded on NGX_THREADS or something else?

2) Where is most appropirate to initialize the locks: ngx_init_threads
or ngx_ssl_init (or somewhere else)?

3) Is the project interested in a patch? (Per, thanks Maxim).

Thanks in advance.


More information about the nginx mailing list