mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
fix FastCGI "zero size buf" alert
This commit is contained in:
parent
80eec93a5f
commit
ff3540af3a
@ -511,6 +511,7 @@ ngx_event_pipe_write_to_downstream(ngx_event_pipe_t *p)
|
|||||||
cl = p->out;
|
cl = p->out;
|
||||||
|
|
||||||
if (cl->buf->recycled
|
if (cl->buf->recycled
|
||||||
|
&& cl->buf->last_shadow
|
||||||
&& bsize + cl->buf->last - cl->buf->pos > p->busy_size)
|
&& bsize + cl->buf->last - cl->buf->pos > p->busy_size)
|
||||||
{
|
{
|
||||||
flush = 1;
|
flush = 1;
|
||||||
@ -525,6 +526,7 @@ ngx_event_pipe_write_to_downstream(ngx_event_pipe_t *p)
|
|||||||
cl = p->in;
|
cl = p->in;
|
||||||
|
|
||||||
if (cl->buf->recycled
|
if (cl->buf->recycled
|
||||||
|
&& cl->buf->last_shadow
|
||||||
&& bsize + cl->buf->last - cl->buf->pos > p->busy_size)
|
&& bsize + cl->buf->last - cl->buf->pos > p->busy_size)
|
||||||
{
|
{
|
||||||
flush = 1;
|
flush = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user