fix socket leak if deferred accept was used
This commit is contained in:
parent
edd04ac52f
commit
912893e685
1 changed files with 5 additions and 0 deletions
|
@ -490,6 +490,11 @@ ngx_http_ssl_handshake(ngx_event_t *rev)
|
|||
rc = ngx_ssl_handshake(c);
|
||||
|
||||
if (rc == NGX_AGAIN) {
|
||||
|
||||
if (!rev->timer_set) {
|
||||
ngx_add_timer(rev, c->listening->post_accept_timeout);
|
||||
}
|
||||
|
||||
c->ssl->handler = ngx_http_ssl_handshake_handler;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue