comparison src/http/ngx_http_request.c @ 1829:81831a2bc67a

fix socket leak if deferred accept was used
author Igor Sysoev <igor@sysoev.ru>
date Fri, 04 Jan 2008 09:32:12 +0000
parents 8f8b66a48494
children 877cb2007c24
comparison
equal deleted inserted replaced
1828:1f3c2b6607e0 1829:81831a2bc67a
488 "https ssl handshake: 0x%02Xd", buf[0]); 488 "https ssl handshake: 0x%02Xd", buf[0]);
489 489
490 rc = ngx_ssl_handshake(c); 490 rc = ngx_ssl_handshake(c);
491 491
492 if (rc == NGX_AGAIN) { 492 if (rc == NGX_AGAIN) {
493
494 if (!rev->timer_set) {
495 ngx_add_timer(rev, c->listening->post_accept_timeout);
496 }
497
493 c->ssl->handler = ngx_http_ssl_handshake_handler; 498 c->ssl->handler = ngx_http_ssl_handshake_handler;
494 return; 499 return;
495 } 500 }
496 501
497 ngx_http_ssl_handshake_handler(c); 502 ngx_http_ssl_handshake_handler(c);