[PATCH 1 of 2] HTTP/3: fixed ngx_http_v3_init_session() error handling

Sergey Kandaurov pluknet at nginx.com
Mon May 1 15:26:14 UTC 2023


# HG changeset patch
# User Sergey Kandaurov <pluknet at nginx.com>
# Date 1682954723 -14400
#      Mon May 01 19:25:23 2023 +0400
# Branch quic
# Node ID 8aa3363bc83d4354b3142e3972cce5c0ef523539
# Parent  9ea62b6250f225578f703da5e230853a7a84df7d
HTTP/3: fixed ngx_http_v3_init_session() error handling.

A QUIC connection is not usable yet at this early stage of spin up.

diff --git a/src/http/v3/ngx_http_v3.c b/src/http/v3/ngx_http_v3.c
--- a/src/http/v3/ngx_http_v3.c
+++ b/src/http/v3/ngx_http_v3.c
@@ -59,9 +59,6 @@ ngx_http_v3_init_session(ngx_connection_
 failed:
 
     ngx_log_error(NGX_LOG_ERR, c->log, 0, "failed to create http3 session");
-
-    ngx_http_v3_finalize_connection(c, NGX_HTTP_V3_ERR_INTERNAL_ERROR,
-                                    "failed to create http3 session");
     return NGX_ERROR;
 }
 


More information about the nginx-devel mailing list