Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 189:c966c09be66b
nginx-0.0.1-2003-11-18-19:49:00 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 18 Nov 2003 16:49:00 +0000 |
parents | c0552e5ab567 |
children | 71ce40b3c37b |
comparison
equal
deleted
inserted
replaced
188:0061d1f0908d | 189:c966c09be66b |
---|---|
662 | 662 |
663 if (n > 0) { | 663 if (n > 0) { |
664 return n; | 664 return n; |
665 } | 665 } |
666 | 666 |
667 if (!rev->ready) { | |
668 return NGX_AGAIN; | |
669 } | |
670 | |
667 n = ngx_recv(r->connection, r->header_in->last, | 671 n = ngx_recv(r->connection, r->header_in->last, |
668 r->header_in->end - r->header_in->last); | 672 r->header_in->end - r->header_in->last); |
669 | 673 |
670 if (n == NGX_AGAIN) { | 674 if (n == NGX_AGAIN) { |
671 if (!r->header_timeout_set) { | 675 if (!r->header_timeout_set) { |
851 | 855 |
852 clcf = ngx_http_get_module_loc_conf(r->main ? r->main : r, | 856 clcf = ngx_http_get_module_loc_conf(r->main ? r->main : r, |
853 ngx_http_core_module); | 857 ngx_http_core_module); |
854 ngx_add_timer(wev, clcf->send_timeout); | 858 ngx_add_timer(wev, clcf->send_timeout); |
855 | 859 |
856 if (ngx_handle_write_event(wev, clcf->send_lowat) == NGX_ERROR) { | 860 wev->available = clcf->send_lowat; |
861 if (ngx_handle_write_event(wev, NGX_LOWAT_EVENT) == NGX_ERROR) { | |
857 ngx_http_close_request(r, 0); | 862 ngx_http_close_request(r, 0); |
858 ngx_http_close_connection(r->connection); | 863 ngx_http_close_connection(r->connection); |
859 } | 864 } |
860 | 865 |
861 return; | 866 return; |