From: Roman Arutyunyan Date: Tue, 2 Feb 2021 12:09:48 +0000 (+0300) Subject: HTTP/3: reverted version check for keepalive flag. X-Git-Tag: release-1.25.0~4^2~418 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=365c8b7914033c05fc1e564684dade448fc65671;p=nginx.git HTTP/3: reverted version check for keepalive flag. The flag is used in ngx_http_finalize_connection() to switch client connection to the keepalive mode. Since eaea7dac3292 this code is not executed for HTTP/3 which allows us to revert the change and get back to the default branch code. --- diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index ef8b649ef..d4e1910bf 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -819,7 +819,7 @@ ngx_http_handler(ngx_http_request_t *r) if (!r->internal) { switch (r->headers_in.connection_type) { case 0: - r->keepalive = (r->http_version == NGX_HTTP_VERSION_11); + r->keepalive = (r->http_version > NGX_HTTP_VERSION_10); break; case NGX_HTTP_CONNECTION_CLOSE: