aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2021-08-29 22:20:44 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2021-08-29 22:20:44 +0300
commit2862eb40e86190bf4d337a6483150f4385fb5358 (patch)
treecad5cd21db05544417a342a7cf06be88394e0861 /src
parent9f90d11cf52ccb0a8d086525aa7e4218d31d529a (diff)
downloadnginx-2862eb40e86190bf4d337a6483150f4385fb5358.tar.gz
nginx-2862eb40e86190bf4d337a6483150f4385fb5358.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/http/v2/ngx_http_v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c
index a037e7a52..9e248758d 100644
--- a/src/http/v2/ngx_http_v2.c
+++ b/src/http/v2/ngx_http_v2.c
@@ -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,