Mercurial > hg > nginx
comparison src/core/ngx_output_chain.c @ 164:84036764e215
nginx-0.0.1-2003-10-29-11:30:44 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 29 Oct 2003 08:30:44 +0000 |
parents | 96993d4d5067 |
children | 389d7ee9fa60 |
comparison
equal
deleted
inserted
replaced
163:fb61ba77beba | 164:84036764e215 |
---|---|
45 return NGX_ERROR; | 45 return NGX_ERROR; |
46 } | 46 } |
47 } | 47 } |
48 | 48 |
49 last = NGX_NONE; | 49 last = NGX_NONE; |
50 out = NULL; | |
50 last_out = &out; | 51 last_out = &out; |
51 | 52 |
52 for ( ;; ) { | 53 for ( ;; ) { |
53 | 54 |
54 while (ctx->in) { | 55 while (ctx->in) { |
165 { | 166 { |
166 if (ngx_hunk_special(hunk)) { | 167 if (ngx_hunk_special(hunk)) { |
167 return 0; | 168 return 0; |
168 } | 169 } |
169 | 170 |
170 if (!ctx->sendfile) { | 171 if (!ctx->sendfile && (!(hunk->type & NGX_HUNK_IN_MEMORY))) { |
171 return 1; | 172 return 1; |
172 } | 173 } |
173 | 174 |
174 if (ctx->need_in_memory && (!(hunk->type & NGX_HUNK_IN_MEMORY))) { | 175 if (ctx->need_in_memory && (!(hunk->type & NGX_HUNK_IN_MEMORY))) { |
175 return 1; | 176 return 1; |