Mercurial > hg > nginx
diff src/http/ngx_http_output_filter.c @ 146:5ac79e574285
nginx-0.0.1-2003-10-14-09:26:00 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 14 Oct 2003 05:26:00 +0000 |
parents | 5526213be452 |
children | c71aeb75c071 |
line wrap: on
line diff
--- 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_requ #if (NGX_FILE_AIO_READ) if (rc == NGX_AGAIN) { + if (ctx->out) { + break; + } return rc; } #endif