From 2862eb40e86190bf4d337a6483150f4385fb5358 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Sun, 29 Aug 2021 22:20:44 +0300 Subject: [PATCH] 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. --- src/http/v2/ngx_http_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,