Mercurial > hg > nginx
comparison src/http/ngx_http_output_filter.c @ 19:d7908993fdeb
nginx-0.0.1-2002-12-02-19:09:40 import; resume after 2 months stall
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Dec 2002 16:09:40 +0000 |
parents | 055ed05235ae |
children | f540a63026c9 |
comparison
equal
deleted
inserted
replaced
18:72ad26c77d2d | 19:d7908993fdeb |
---|---|
88 /* our hunk is free */ | 88 /* our hunk is free */ |
89 } else { | 89 } else { |
90 ctx->out.hunk = ctx->hunk; | 90 ctx->out.hunk = ctx->hunk; |
91 | 91 |
92 rc = ngx_http_output_filter_copy_hunk(ctx->hunk, ctx->in->hunk); | 92 rc = ngx_http_output_filter_copy_hunk(ctx->hunk, ctx->in->hunk); |
93 #if (NGX_FILE_AIO) | 93 #if (NGX_FILE_AIO_READ) |
94 if (rc == NGX_AGAIN) | 94 if (rc == NGX_AGAIN) |
95 return rc; | 95 return rc; |
96 #endif | 96 #endif |
97 if (rc == NGX_ERROR) | 97 if (rc == NGX_ERROR) |
98 return rc; | 98 return rc; |
176 NGX_ERROR); | 176 NGX_ERROR); |
177 ctx->hunk->type |= NGX_HUNK_RECYCLED; | 177 ctx->hunk->type |= NGX_HUNK_RECYCLED; |
178 | 178 |
179 rc = ngx_http_output_filter_copy_hunk(ctx->hunk, | 179 rc = ngx_http_output_filter_copy_hunk(ctx->hunk, |
180 hunk); | 180 hunk); |
181 #if (NGX_FILE_AIO) | 181 #if (NGX_FILE_AIO_READ) |
182 if (rc == NGX_AGAIN) { | 182 if (rc == NGX_AGAIN) { |
183 /* add hunk to input chain */ | 183 /* add hunk to input chain */ |
184 ngx_add_hunk_to_chain(ctx->in, hunk, r->pool, | 184 ngx_add_hunk_to_chain(ctx->in, hunk, r->pool, |
185 NGX_ERROR); | 185 NGX_ERROR); |
186 | 186 |
241 n = ngx_read_file(src->file, dst->pos.mem, size, src->pos.file); | 241 n = ngx_read_file(src->file, dst->pos.mem, size, src->pos.file); |
242 | 242 |
243 if (n == NGX_ERROR) { | 243 if (n == NGX_ERROR) { |
244 return n; | 244 return n; |
245 | 245 |
246 #if (NGX_FILE_AIO) | 246 #if (NGX_FILE_AIO_READ) |
247 } else if (n == NGX_AGAIN) { | 247 } else if (n == NGX_AGAIN) { |
248 return n; | 248 return n; |
249 #endif | 249 #endif |
250 | 250 |
251 } else { | 251 } else { |