mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
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
This commit is contained in:
parent
7b2d87ffa0
commit
9d58e4bed3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user