commit | 57b088d1cc584a67a8c2c54e9503939b5970da2d | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Wed Jan 09 08:21:57 2008 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Wed Jan 09 08:21:57 2008 +0000 |
tree | fae628e803241c810b42eb39e56bb56560c4980c | |
parent | 5a45c6869fe75b6e404db836a53ff5241f9c2a17 [diff] |
add code missed in r1856
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 03dc68b..4d21a00 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c
@@ -484,6 +484,10 @@ 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; }