mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
fix endless loop when too many FastCGI sent too many to stderr
This commit is contained in:
parent
7ef16ce57c
commit
2573f71e14
@ -295,6 +295,7 @@ ngx_event_pipe_read_upstream(ngx_event_pipe_t *p)
|
|||||||
|
|
||||||
p->read_length += n;
|
p->read_length += n;
|
||||||
cl = chain;
|
cl = chain;
|
||||||
|
p->free_raw_bufs = NULL;
|
||||||
|
|
||||||
while (cl && n > 0) {
|
while (cl && n > 0) {
|
||||||
|
|
||||||
@ -322,7 +323,14 @@ ngx_event_pipe_read_upstream(ngx_event_pipe_t *p)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p->free_raw_bufs = cl;
|
if (cl) {
|
||||||
|
while (cl->next) {
|
||||||
|
cl = cl->next;
|
||||||
|
}
|
||||||
|
|
||||||
|
cl->next = p->free_raw_bufs;
|
||||||
|
p->free_raw_bufs = cl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (NGX_DEBUG)
|
#if (NGX_DEBUG)
|
||||||
|
Loading…
Reference in New Issue
Block a user