HTTP/2: improved handling of preread unbuffered requests.

Previously, fully preread unbuffered requests larger than client body
buffer size were saved to disk, despite the fact that "unbuffered" is
expected to imply no disk buffering.
This commit is contained in:
Maxim Dounin 2021-08-29 22:20:44 +03:00
parent 9f90d11cf5
commit 2862eb40e8

View File

@ -4039,7 +4039,7 @@ ngx_http_v2_read_request_body(ngx_http_request_t *r)
len++;
}
if (r->request_body_no_buffering && !stream->in_closed) {
if (r->request_body_no_buffering) {
/*
* We need a room to store data up to the stream's initial window size,