mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
update connection readiness after SSL handshake,
this fixes mail proxy SSL connection hanging if level-triggered event is used
This commit is contained in:
@@ -505,6 +505,9 @@ ngx_ssl_handshake(ngx_connection_t *c)
|
||||
|
||||
if (n == 1) {
|
||||
|
||||
c->read->ready = 0;
|
||||
c->write->ready = 1;
|
||||
|
||||
if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) {
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user