]> 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)
commita31869dfaf1aa7ad56eaa0eeb5275ee18699862c
tree4b9bb5994c18cbd3f07d33c236c6952559059399
parent3985c5bfdc9a42a12926adb55550c0ff79591dcd
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