]> git.kaiwu.me - nginx.git/commitdiff
correct r1100
authorIgor Sysoev <igor@sysoev.ru>
Mon, 12 Feb 2007 14:58:45 +0000 (14:58 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 12 Feb 2007 14:58:45 +0000 (14:58 +0000)
src/event/ngx_event_pipe.c

index b91aafd4d94c0265f8e3041f0f7d5324c75ab661..31efc032339d90f3277387939efc5b1769e2ecda 100644 (file)
@@ -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;
             }