comparison src/http/ngx_http_request.c @ 1856:11d12ef106a9

axe old flag remained after ancient "post_accept_timeout" directive
author Igor Sysoev <igor@sysoev.ru>
date Tue, 08 Jan 2008 20:55:27 +0000
parents 877cb2007c24
children 1ff400fed04d
comparison
equal deleted inserted replaced
1855:877cb2007c24 1856:11d12ef106a9
988 } else { 988 } else {
989 n = NGX_AGAIN; 989 n = NGX_AGAIN;
990 } 990 }
991 991
992 if (n == NGX_AGAIN) { 992 if (n == NGX_AGAIN) {
993 if (!r->header_timeout_set) { 993 if (!rev->timer_set) {
994 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); 994 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module);
995 ngx_add_timer(rev, cscf->client_header_timeout); 995 ngx_add_timer(rev, cscf->client_header_timeout);
996 r->header_timeout_set = 1;
997 } 996 }
998 997
999 if (ngx_handle_read_event(rev, 0) == NGX_ERROR) { 998 if (ngx_handle_read_event(rev, 0) == NGX_ERROR) {
1000 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); 999 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
1001 return NGX_ERROR; 1000 return NGX_ERROR;