]> git.kaiwu.me - nginx.git/commit
SSL: corrected SSL_ERROR_WANT_WRITE / SSL_ERROR_WANT_READ logging.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 10 Sep 2018 15:57:19 +0000 (18:57 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 10 Sep 2018 15:57:19 +0000 (18:57 +0300)
commitc2f90de0c56866bb4ef0630f89cee7904e687fba
tree3027a59a2b01bd6df3acc74ca086496c45ae672d
parent278be041ddbd91c28b496ca01213c47cbc96d958
SSL: corrected SSL_ERROR_WANT_WRITE / SSL_ERROR_WANT_READ logging.

While SSL_read() most likely to return SSL_ERROR_WANT_WRITE (and SSL_write()
accordingly SSL_ERROR_WANT_READ) during an SSL renegotiation, it is
not necessary mean that a renegotiation was started.  In particular,
it can never happen during a renegotiation or can happen multiple times
during a renegotiation.

Because of the above, misleading "peer started SSL renegotiation" info
messages were replaced with "SSL_read: want write" and "SSL_write: want read"
debug ones.

Additionally, "SSL write handler" and "SSL read handler" are now logged
by the SSL write and read handlers, to make it easier to understand that
temporary SSL handlers are called instead of normal handlers.
src/event/ngx_event_openssl.c