]> git.kaiwu.me - nginx.git/commitdiff
fix FastCGI "zero size buf" alert
authorIgor Sysoev <igor@sysoev.ru>
Mon, 6 Nov 2006 18:46:00 +0000 (18:46 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 6 Nov 2006 18:46:00 +0000 (18:46 +0000)
src/event/ngx_event_pipe.c

index 09b6f6a6e5704bf174c9e69a43c9896485eadb1c..bb371691bcb662cc8d2fc21e0fea5cf79e0ae31d 100644 (file)
@@ -511,6 +511,7 @@ ngx_event_pipe_write_to_downstream(ngx_event_pipe_t *p)
                 cl = p->out;
 
                 if (cl->buf->recycled
+                    && cl->buf->last_shadow
                     && bsize + cl->buf->last - cl->buf->pos > p->busy_size)
                 {
                     flush = 1;
@@ -525,6 +526,7 @@ ngx_event_pipe_write_to_downstream(ngx_event_pipe_t *p)
                 cl = p->in;
 
                 if (cl->buf->recycled
+                    && cl->buf->last_shadow
                     && bsize + cl->buf->last - cl->buf->pos > p->busy_size)
                 {
                     flush = 1;