From 5ec68f6453a0ed164a8fd73e024edb75344e967d Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 28 Jul 2004 16:16:50 +0000 Subject: nginx-0.0.9-2004-07-28-20:16:50 import --- src/core/ngx_output_chain.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c index 02d780f37..549c9ad16 100644 --- a/src/core/ngx_output_chain.c +++ b/src/core/ngx_output_chain.c @@ -73,6 +73,13 @@ ngx_int_t ngx_output_chain(ngx_output_chain_ctx_t *ctx, ngx_chain_t *in) continue; } + bsize = ngx_buf_size(ctx->in->buf); + + if (bsize == 0) { + ctx->in = ctx->in->next; + continue; + } + if (ctx->buf == NULL) { /* get the free buf */ @@ -91,8 +98,6 @@ ngx_int_t ngx_output_chain(ngx_output_chain_ctx_t *ctx, ngx_chain_t *in) if (ctx->in->buf->last_buf) { - bsize = ngx_buf_size(ctx->in->buf); - if (bsize < ctx->bufs.size) { /* -- cgit