[nginx] HTTP/2: improved handling of preread unbuffered requests.
Maxim Dounin
mdounin at mdounin.ru
Sun Aug 29 21:00:59 UTC 2021
details: https://hg.nginx.org/nginx/rev/1d78437dbc3f
branches:
changeset: 7910:1d78437dbc3f
user: Maxim Dounin <mdounin at mdounin.ru>
date: Sun Aug 29 22:20:44 2021 +0300
description:
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:
src/http/v2/ngx_http_v2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r f302c1096f7b -r 1d78437dbc3f src/http/v2/ngx_http_v2.c
--- a/src/http/v2/ngx_http_v2.c Sun Aug 29 22:20:38 2021 +0300
+++ b/src/http/v2/ngx_http_v2.c Sun Aug 29 22:20:44 2021 +0300
@@ -4039,7 +4039,7 @@ ngx_http_v2_read_request_body(ngx_http_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,
More information about the nginx-devel
mailing list