Mercurial > hg > nginx-quic
comparison src/core/ngx_output_chain.c @ 294:5cfd65b8b0a7
nginx-0.0.3-2004-03-23-09:01:52 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 23 Mar 2004 06:01:52 +0000 |
parents | 117ccc7c4055 |
children | d621239c30f7 |
comparison
equal
deleted
inserted
replaced
293:ec3c049681fd | 294:5cfd65b8b0a7 |
---|---|
26 */ | 26 */ |
27 | 27 |
28 if (ctx->in == NULL) { | 28 if (ctx->in == NULL) { |
29 | 29 |
30 if (in == NULL) { | 30 if (in == NULL) { |
31 return ctx->output_filter(ctx->output_ctx, in); | 31 return ctx->output_filter(ctx->filter_ctx, in); |
32 } | 32 } |
33 | 33 |
34 if (in->next == NULL | 34 if (in->next == NULL |
35 && (!ngx_output_chain_need_to_copy(ctx, in->hunk))) | 35 && (!ngx_output_chain_need_to_copy(ctx, in->hunk))) |
36 { | 36 { |
37 return ctx->output_filter(ctx->output_ctx, in); | 37 return ctx->output_filter(ctx->filter_ctx, in); |
38 } | 38 } |
39 } | 39 } |
40 | 40 |
41 /* add the incoming hunk to the chain ctx->in */ | 41 /* add the incoming hunk to the chain ctx->in */ |
42 | 42 |
151 | 151 |
152 if (out == NULL && last != NGX_NONE) { | 152 if (out == NULL && last != NGX_NONE) { |
153 return last; | 153 return last; |
154 } | 154 } |
155 | 155 |
156 last = ctx->output_filter(ctx->output_ctx, out); | 156 last = ctx->output_filter(ctx->filter_ctx, out); |
157 | 157 |
158 ngx_chain_update_chains(&ctx->free, &ctx->busy, &out, ctx->tag); | 158 ngx_chain_update_chains(&ctx->free, &ctx->busy, &out, ctx->tag); |
159 last_out = &out; | 159 last_out = &out; |
160 } | 160 } |
161 } | 161 } |