comparison src/core/ngx_output_chain.c @ 402:f209f3391020

nginx-0.0.9-2004-07-28-20:16:50 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 28 Jul 2004 16:16:50 +0000
parents f8f0f1834266
children ea3113b181d1
comparison
equal deleted inserted replaced
401:b32ca005e025 402:f209f3391020
71 cl->next = NULL; 71 cl->next = NULL;
72 72
73 continue; 73 continue;
74 } 74 }
75 75
76 bsize = ngx_buf_size(ctx->in->buf);
77
78 if (bsize == 0) {
79 ctx->in = ctx->in->next;
80 continue;
81 }
82
76 if (ctx->buf == NULL) { 83 if (ctx->buf == NULL) {
77 84
78 /* get the free buf */ 85 /* get the free buf */
79 86
80 if (ctx->free) { 87 if (ctx->free) {
88 } else { 95 } else {
89 96
90 size = ctx->bufs.size; 97 size = ctx->bufs.size;
91 98
92 if (ctx->in->buf->last_buf) { 99 if (ctx->in->buf->last_buf) {
93
94 bsize = ngx_buf_size(ctx->in->buf);
95 100
96 if (bsize < ctx->bufs.size) { 101 if (bsize < ctx->bufs.size) {
97 102
98 /* 103 /*
99 * allocate small temp buf for the small last buf 104 * allocate small temp buf for the small last buf