Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request.c @ 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 | db7c468c447d |
children | f07a5f4017d9 |
comparison
equal
deleted
inserted
replaced
1109:1402dbb554c4 | 1110:82da2c898923 |
---|---|
1651 ngx_event_t *wev; | 1651 ngx_event_t *wev; |
1652 ngx_http_core_loc_conf_t *clcf; | 1652 ngx_http_core_loc_conf_t *clcf; |
1653 | 1653 |
1654 r->http_state = NGX_HTTP_WRITING_REQUEST_STATE; | 1654 r->http_state = NGX_HTTP_WRITING_REQUEST_STATE; |
1655 | 1655 |
1656 r->read_event_handler = ngx_http_block_read; | |
1656 r->write_event_handler = ngx_http_writer; | 1657 r->write_event_handler = ngx_http_writer; |
1657 | 1658 |
1658 wev = r->connection->write; | 1659 wev = r->connection->write; |
1659 | 1660 |
1660 if (wev->ready && wev->delayed) { | 1661 if (wev->ready && wev->delayed) { |