]> git.kaiwu.me - nginx.git/commit
SSL: restore handlers after blocking.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 10 Sep 2018 15:57:39 +0000 (18:57 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 10 Sep 2018 15:57:39 +0000 (18:57 +0300)
commit05029e775fb0053e14a0b0b84d0c16f8e5d9d6a8
treeb67a8eef1a7630a7910023fc04a552f4a4d0acfd
parentc2f90de0c56866bb4ef0630f89cee7904e687fba
SSL: restore handlers after blocking.

It is possible that after SSL_read() will return SSL_ERROR_WANT_WRITE,
further calls will return SSL_ERROR_WANT_READ without reading any
application data.  We have to call ngx_handle_write_event() and
switch back to normal write handling much like we do if there are some
application data, or the write there will be reported again and again.

Similarly, we have to switch back to normal read handling if there
is saved read handler and SSL_write() returns SSL_ERROR_WANT_WRITE.
src/event/ngx_event_openssl.c