]> git.kaiwu.me - nginx.git/commitdiff
add code missed in r1856
authorIgor Sysoev <igor@sysoev.ru>
Wed, 9 Jan 2008 08:21:57 +0000 (08:21 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 9 Jan 2008 08:21:57 +0000 (08:21 +0000)
src/http/ngx_http_request.c

index 03dc68bdf55c7b06b540bd9ab91b5d608b13e58d..4d21a002a82648c515a15a277007053a7fdbdef9 100644 (file)
@@ -484,6 +484,10 @@ ngx_http_ssl_handshake(ngx_event_t *rev)
             ngx_add_timer(rev, c->listening->post_accept_timeout);
         }
 
+        if (ngx_handle_read_event(rev, 0) == NGX_ERROR) {
+            ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
+        }
+
         return;
     }