Mercurial > hg > nginx
comparison src/core/ngx_output_chain.c @ 170:c42be4185301
nginx-0.0.1-2003-11-03-01:56:18 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 02 Nov 2003 22:56:18 +0000 |
parents | 8aef3c72e5da |
children | 2357fa41738a |
comparison
equal
deleted
inserted
replaced
169:edf29bb717da | 170:c42be4185301 |
---|---|
167 { | 167 { |
168 if (ngx_hunk_special(hunk)) { | 168 if (ngx_hunk_special(hunk)) { |
169 return 0; | 169 return 0; |
170 } | 170 } |
171 | 171 |
172 if (!ctx->sendfile && (!(hunk->type & NGX_HUNK_IN_MEMORY))) { | 172 if (!ctx->sendfile) { |
173 return 1; | 173 if (!(hunk->type & NGX_HUNK_IN_MEMORY)) { |
174 return 1; | |
175 } | |
176 | |
177 hunk->type &= ~NGX_HUNK_FILE; | |
174 } | 178 } |
175 | 179 |
176 if (ctx->need_in_memory && (!(hunk->type & NGX_HUNK_IN_MEMORY))) { | 180 if (ctx->need_in_memory && (!(hunk->type & NGX_HUNK_IN_MEMORY))) { |
177 return 1; | 181 return 1; |
178 } | 182 } |