Mercurial > hg > nginx
changeset 1110:82da2c898923
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
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 15 Feb 2007 10:02:34 +0000 |
parents | 1402dbb554c4 |
children | b0fc4af1f196 |
files | src/http/ngx_http_request.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c Thu Feb 15 10:00:59 2007 +0000 +++ b/src/http/ngx_http_request.c Thu Feb 15 10:02:34 2007 +0000 @@ -1653,6 +1653,7 @@ 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;