comparison src/http/ngx_http_request.c @ 1423:75e908236701

cancel keep-alive and lingering close on EOF
author Igor Sysoev <igor@sysoev.ru>
date Mon, 27 Aug 2007 15:40:19 +0000
parents cb8b30ef3e7e
children 937fbbf611cd
comparison
equal deleted inserted replaced
1422:65dd057f71c7 1423:75e908236701
1710 1710
1711 if (r->connection->destroyed) { 1711 if (r->connection->destroyed) {
1712 return; 1712 return;
1713 } 1713 }
1714 1714
1715 if (r->connection->read->eof) {
1716 ngx_http_close_request(r, 0);
1717 return;
1718 }
1719
1715 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 1720 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
1716 1721
1717 if (!ngx_terminate 1722 if (!ngx_terminate
1718 && !ngx_exiting 1723 && !ngx_exiting
1719 && r->keepalive != 0 1724 && r->keepalive != 0