mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
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.
This commit is contained in:
parent
a373d2851b
commit
365c8b7914
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user