fix socket leak if deferred accept was used

This commit is contained in:
Igor Sysoev 2008-01-04 09:32:12 +00:00
parent 81922511ae
commit 7b8ed4259b

View File

@ -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;
}