~titusx/nginx/mainline

Viewing all changes in revision 6919.

  • Committer: Maxim Dounin
  • Date: 2021-08-03 17:50:30 UTC
  • Revision ID: git-v1:15769c3918578dfa601303afa40d7acf9c36e4d9
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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: