commit | f068c45dbe60411425493e58a5e8722df0f4083e | [log] [tgz] |
---|---|---|
author | Roman Arutyunyan <arut@nginx.com> | Mon Mar 02 21:15:46 2015 +0300 |
committer | Roman Arutyunyan <arut@nginx.com> | Mon Mar 02 21:15:46 2015 +0300 |
tree | 7a7767a0635b722c9a9dfc3f2b95644dadc55630 | |
parent | 4b3863231dab4ead718314ee664629aa071f40e0 [diff] |
SSL: reset ready flag if recv(MSG_PEEK) found no bytes in socket. Previously, connection hung after calling ngx_http_ssl_handshake() with rev->ready set and no bytes in socket to read. It's possible in at least the following cases: - when processing a connection with expired TCP_DEFER_ACCEPT on Linux - after parsing PROXY protocol header if it arrived in a separate TCP packet Thanks to James Hamlin.