mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 05:33:52 -06:00
fix socket leak if deferred accept was used
This commit is contained in:
parent
81922511ae
commit
7b8ed4259b
@ -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 New Issue
Block a user