Welcome! Log In Create A New Profile

Advanced

[nginx] HTTP/2: improved handling of preread unbuffered requests.

Maxim Dounin
August 29, 2021 05:06PM
details: https://hg.nginx.org/nginx/rev/1d78437dbc3f
branches:
changeset: 7910:1d78437dbc3f
user: Maxim Dounin <mdounin@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,
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] HTTP/2: improved handling of preread unbuffered requests.

Maxim Dounin 279 August 29, 2021 05:06PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 107
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready