[PATCH 7 of 8] HTTP/3: renamed functions

Roman Arutyunyan arut at nginx.com
Thu Jun 23 15:58:45 UTC 2022


# HG changeset patch
# User Roman Arutyunyan <arut at nginx.com>
# Date 1655740875 -14400
#      Mon Jun 20 20:01:15 2022 +0400
# Branch quic
# Node ID 03f1661db9601dd552c83643a6198375762b0615
# Parent  1fad6f74168bdceaf3cd59ae72f7c6128dfaa84d
HTTP/3: renamed functions.

ngx_http_v3_init() is renamed ngx_http_v3_init_stream().
ngx_http_v3_reset_connection() is renamed to ngx_http_v3_reset_stream().

diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -328,7 +328,7 @@ ngx_http_init_connection(ngx_connection_
 
 #if (NGX_HTTP_V3)
     if (hc->addr_conf->http3) {
-        ngx_http_v3_init(c);
+        ngx_http_v3_init_stream(c);
         return;
     }
 #endif
@@ -3812,7 +3812,7 @@ ngx_http_close_connection(ngx_connection
 
 #if (NGX_HTTP_V3)
     if (c->quic) {
-        ngx_http_v3_reset_connection(c);
+        ngx_http_v3_reset_stream(c);
     }
 #endif
 
diff --git a/src/http/v3/ngx_http_v3.h b/src/http/v3/ngx_http_v3.h
--- a/src/http/v3/ngx_http_v3.h
+++ b/src/http/v3/ngx_http_v3.h
@@ -148,8 +148,8 @@ struct ngx_http_v3_session_s {
 };
 
 
-void ngx_http_v3_init(ngx_connection_t *c);
-void ngx_http_v3_reset_connection(ngx_connection_t *c);
+void ngx_http_v3_init_stream(ngx_connection_t *c);
+void ngx_http_v3_reset_stream(ngx_connection_t *c);
 ngx_int_t ngx_http_v3_init_session(ngx_connection_t *c);
 ngx_int_t ngx_http_v3_check_flood(ngx_connection_t *c);
 void ngx_http_v3_shutdown(ngx_connection_t *c);
diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c
--- a/src/http/v3/ngx_http_v3_request.c
+++ b/src/http/v3/ngx_http_v3_request.c
@@ -59,7 +59,7 @@ static const struct {
 
 
 void
-ngx_http_v3_init(ngx_connection_t *c)
+ngx_http_v3_init_stream(ngx_connection_t *c)
 {
     ngx_http_v3_session_t     *h3c;
     ngx_http_connection_t     *hc, *phc;
@@ -505,7 +505,7 @@ ngx_http_v3_wait_request_handler(ngx_eve
 
 
 void
-ngx_http_v3_reset_connection(ngx_connection_t *c)
+ngx_http_v3_reset_stream(ngx_connection_t *c)
 {
     ngx_http_v3_srv_conf_t  *h3scf;
 



More information about the nginx-devel mailing list