Mercurial > hg > nginx-quic
diff 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 |
line wrap: on
line diff
--- 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_ch 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_ch if (ctx->in->buf->last_buf) { - bsize = ngx_buf_size(ctx->in->buf); - if (bsize < ctx->bufs.size) { /*