]> git.kaiwu.me - nginx.git/commitdiff
add code missed in r1830
authorIgor Sysoev <igor@sysoev.ru>
Tue, 8 Jan 2008 20:51:06 +0000 (20:51 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 8 Jan 2008 20:51:06 +0000 (20:51 +0000)
src/http/ngx_http_request.c

index bb21b71b25a4fedaf3a94fd31aebd4321c1afd99..b3eab7e24fc2c871213697a1a48454b286d2e62f 100644 (file)
@@ -479,6 +479,11 @@ ngx_http_ssl_handshake(ngx_event_t *rev)
     n = recv(c->fd, (char *) buf, 1, MSG_PEEK);
 
     if (n == -1 && ngx_socket_errno == NGX_EAGAIN) {
+
+        if (!rev->timer_set) {
+            ngx_add_timer(rev, c->listening->post_accept_timeout);
+        }
+
         return;
     }