# HG changeset patch # User Igor Sysoev # Date 1066409606 0 # Node ID 86404ba5c517627e3cdc2b3318b23874dcbee49d # Parent 5afee00747077898bf4691ea995871701f6d75f0 nginx-0.0.1-2003-10-17-20:53:26 import diff --git a/src/event/ngx_event_proxy.c b/src/event/ngx_event_proxy.c --- a/src/event/ngx_event_proxy.c +++ b/src/event/ngx_event_proxy.c @@ -246,7 +246,9 @@ int ngx_event_proxy_write_to_downstream( } else if (!p->cachable && p->in) { out = p->in; - if (p->busy_len + ngx_hunk_size(out->hunk) > p->max_busy_len) { + if (!(p->upstream_eof || p->upstream_error || p->upstream_done) + && (p->busy_len + ngx_hunk_size(out->hunk) > p->max_busy_len)) + { break; } diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -721,7 +721,10 @@ static ssize_t ngx_http_read_request_hea n = r->header_in->last - r->header_in->pos; if (n > 0) { +#if 0 + /* TODO: THINK - AIO ??? */ rev->ready = 0; +#endif return n; }