diff options
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index bb21b71b2..b3eab7e24 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -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; } |