From 1be6fcf207cec24e3a1e64d383efac4de3d0e5c3 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 14 Oct 2003 05:26:00 +0000 Subject: nginx-0.0.1-2003-10-14-09:26:00 import --- src/http/ngx_http_output_filter.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/http') diff --git a/src/http/ngx_http_output_filter.c b/src/http/ngx_http_output_filter.c index 0f5b04c0d..4cd96a975 100644 --- a/src/http/ngx_http_output_filter.c +++ b/src/http/ngx_http_output_filter.c @@ -19,8 +19,12 @@ typedef struct { ngx_hunk_t *hunk; ngx_chain_t *in; + + /* TODO: out and last_out should be local variables */ ngx_chain_t *out; ngx_chain_t **last_out; + /* */ + ngx_chain_t *free; ngx_chain_t *busy; @@ -180,6 +184,9 @@ int ngx_http_output_filter(ngx_http_request_t *r, ngx_hunk_t *hunk) #if (NGX_FILE_AIO_READ) if (rc == NGX_AGAIN) { + if (ctx->out) { + break; + } return rc; } #endif -- cgit