commit | 7b8ed4259b04c0124c375f329fb0a3711e3bc54c | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Fri Jan 04 09:32:12 2008 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Fri Jan 04 09:32:12 2008 +0000 |
tree | e0b1409869fba658066baf348a8904be36576475 | |
parent | 81922511aea40fcab399dfe2f684cc0220e2f080 [diff] |
fix socket leak if deferred accept was used
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 0816cf9..bb21b71 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c
@@ -490,6 +490,11 @@ 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; }