From 7cc1ea31e975c5f1847087cbc86549e51d4a9ab5 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 12 Feb 2007 14:58:45 +0000 Subject: [PATCH] correct r1100 --- src/event/ngx_event_pipe.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/event/ngx_event_pipe.c b/src/event/ngx_event_pipe.c index b91aafd4d..31efc0323 100644 --- a/src/event/ngx_event_pipe.c +++ b/src/event/ngx_event_pipe.c @@ -502,11 +502,12 @@ ngx_event_pipe_write_to_downstream(ngx_event_pipe_t *p) bsize = 0; for (cl = p->busy; cl; cl = cl->next) { - if (prev == cl->buf->start) { - continue; - } if (cl->buf->recycled) { + if (prev == cl->buf->start) { + continue; + } + bsize += cl->buf->end - cl->buf->start; prev = cl->buf->start; }