]> git.kaiwu.me - nginx.git/commit
SSL: set events ready flags after handshake.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 3 Aug 2021 17:50:30 +0000 (20:50 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 3 Aug 2021 17:50:30 +0000 (20:50 +0300)
commit15769c3918578dfa601303afa40d7acf9c36e4d9
treea76ebc6efae5f6f4952a31b6c012a5c5ad1a79d0
parentf8394db6fe9c73858032bd202bf0809d459a2f2f
SSL: set events ready flags after handshake.

The c->read->ready and c->write->ready flags might be reset during
the handshake, and not set again if the handshake was finished on
the other event.  At the same time, some data might be read from
the socket during the handshake, so missing c->read->ready flag might
result in a connection hang, for example, when waiting for an SMTP
greeting (which was already received during the handshake).

Found by Sergey Kandaurov.
src/event/ngx_event_openssl.c