aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-02-15 10:02:34 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-02-15 10:02:34 +0000
commit9d58e4bed39b664e44d57efb9014085948b97241 (patch)
tree0c3a0ed79a546d48b7ed29376e0fe1d57ad69c59 /src/http/ngx_http_request.c
parent7b2d87ffa0da5a38f9a1b917c77245d5b1b2c911 (diff)
downloadnginx-9d58e4bed39b664e44d57efb9014085948b97241.tar.gz
nginx-9d58e4bed39b664e44d57efb9014085948b97241.zip
if client closes a connection prematurely, then epoll (at least
in Linux 2.6.16) sends EPOLLERR|EPOLLHUP|EPOLLIN only and writer does not know about the error
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index b366f79dd..c2e18b64c 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1653,6 +1653,7 @@ ngx_http_set_write_handler(ngx_http_request_t *r)
r->http_state = NGX_HTTP_WRITING_REQUEST_STATE;
+ r->read_event_handler = ngx_http_block_read;
r->write_event_handler = ngx_http_writer;
wev = r->connection->write;