comparison src/http/ngx_http_core_module.c @ 8691:250974f8f8e7 quic

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.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 02 Feb 2021 15:09:48 +0300
parents 0d2b2664b41c
children 13f7085b90d2
comparison
equal deleted inserted replaced
8690:a9034b10dacc 8691:250974f8f8e7
817 r->connection->log->action = NULL; 817 r->connection->log->action = NULL;
818 818
819 if (!r->internal) { 819 if (!r->internal) {
820 switch (r->headers_in.connection_type) { 820 switch (r->headers_in.connection_type) {
821 case 0: 821 case 0:
822 r->keepalive = (r->http_version == NGX_HTTP_VERSION_11); 822 r->keepalive = (r->http_version > NGX_HTTP_VERSION_10);
823 break; 823 break;
824 824
825 case NGX_HTTP_CONNECTION_CLOSE: 825 case NGX_HTTP_CONNECTION_CLOSE:
826 r->keepalive = 0; 826 r->keepalive = 0;
827 break; 827 break;