diff src/event/ngx_event_pipe.c @ 840:3681cb9bde7d

fix FastCGI "zero size buf" alert
author Igor Sysoev <igor@sysoev.ru>
date Mon, 06 Nov 2006 18:46:00 +0000
parents c73c5c58c619
children 4766f61a8221
line wrap: on
line diff
--- a/src/event/ngx_event_pipe.c
+++ b/src/event/ngx_event_pipe.c
@@ -511,6 +511,7 @@ ngx_event_pipe_write_to_downstream(ngx_e
                 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_e
                 cl = p->in;
 
                 if (cl->buf->recycled
+                    && cl->buf->last_shadow
                     && bsize + cl->buf->last - cl->buf->pos > p->busy_size)
                 {
                     flush = 1;