comparison 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
comparison
equal deleted inserted replaced
145:58557d0cccd1 146:5ac79e574285
17 */ 17 */
18 18
19 ngx_hunk_t *hunk; 19 ngx_hunk_t *hunk;
20 20
21 ngx_chain_t *in; 21 ngx_chain_t *in;
22
23 /* TODO: out and last_out should be local variables */
22 ngx_chain_t *out; 24 ngx_chain_t *out;
23 ngx_chain_t **last_out; 25 ngx_chain_t **last_out;
26 /* */
27
24 ngx_chain_t *free; 28 ngx_chain_t *free;
25 ngx_chain_t *busy; 29 ngx_chain_t *busy;
26 30
27 int hunks; 31 int hunks;
28 } ngx_http_output_filter_ctx_t; 32 } ngx_http_output_filter_ctx_t;
178 return rc; 182 return rc;
179 } 183 }
180 184
181 #if (NGX_FILE_AIO_READ) 185 #if (NGX_FILE_AIO_READ)
182 if (rc == NGX_AGAIN) { 186 if (rc == NGX_AGAIN) {
187 if (ctx->out) {
188 break;
189 }
183 return rc; 190 return rc;
184 } 191 }
185 #endif 192 #endif
186 193
187 if (ctx->in->hunk->type & NGX_HUNK_IN_MEMORY) { 194 if (ctx->in->hunk->type & NGX_HUNK_IN_MEMORY) {