mirror of
https://github.com/nginx/nginx.git
synced 2026-09-01 02:58:40 +00:00
Slice filter: never run subrequests when main request is buffered.
With main request buffered, it's possible, that a slice subrequest will send output before it. For example, while main request is waiting for aio read to complete, a slice subrequest can start an aio operation as well. The order in which aio callbacks are called is undetermined.
This commit is contained in:
parent
79fcf261d0
commit
5c1f76f0e9
1 changed files with 4 additions and 0 deletions
|
|
@ -239,6 +239,10 @@ ngx_http_slice_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
|
|||
return rc;
|
||||
}
|
||||
|
||||
if (r->buffered) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
if (ngx_http_subrequest(r, &r->uri, &r->args, &sr, NULL, 0) != NGX_OK) {
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue