aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-01-09 08:21:57 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-01-09 08:21:57 +0000
commit57b088d1cc584a67a8c2c54e9503939b5970da2d (patch)
treefae628e803241c810b42eb39e56bb56560c4980c /src/http/ngx_http_request.c
parent5a45c6869fe75b6e404db836a53ff5241f9c2a17 (diff)
downloadnginx-57b088d1cc584a67a8c2c54e9503939b5970da2d.tar.gz
nginx-57b088d1cc584a67a8c2c54e9503939b5970da2d.zip
add code missed in r1856
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 03dc68bdf..4d21a002a 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -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;
}