]> git.kaiwu.me - nginx.git/commitdiff
HTTP/3: renamed ngx_http_v3_client_XXX() functions.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 27 Apr 2021 18:32:50 +0000 (21:32 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 27 Apr 2021 18:32:50 +0000 (21:32 +0300)
The functions are renamed to ngx_http_v3_send_XXX() similar to
ngx_http_v3_send_settings() and ngx_http_v3_send_goaway().

src/http/v3/ngx_http_v3.h
src/http/v3/ngx_http_v3_parse.c
src/http/v3/ngx_http_v3_streams.c
src/http/v3/ngx_http_v3_tables.c

index d936b43898cc6ee7d7576e88fb932ffce5fcf768..32d1fd50991f9bb5bc389da99c14ca5786b15be4 100644 (file)
@@ -195,18 +195,18 @@ ngx_int_t ngx_http_v3_set_max_push_id(ngx_connection_t *c,
     uint64_t max_push_id);
 ngx_int_t ngx_http_v3_cancel_push(ngx_connection_t *c, uint64_t push_id);
 
-ngx_int_t ngx_http_v3_client_ref_insert(ngx_connection_t *c, ngx_uint_t dynamic,
+ngx_int_t ngx_http_v3_send_ref_insert(ngx_connection_t *c, ngx_uint_t dynamic,
     ngx_uint_t index, ngx_str_t *value);
-ngx_int_t ngx_http_v3_client_insert(ngx_connection_t *c, ngx_str_t *name,
+ngx_int_t ngx_http_v3_send_insert(ngx_connection_t *c, ngx_str_t *name,
     ngx_str_t *value);
-ngx_int_t ngx_http_v3_client_set_capacity(ngx_connection_t *c,
+ngx_int_t ngx_http_v3_send_set_capacity(ngx_connection_t *c,
     ngx_uint_t capacity);
-ngx_int_t ngx_http_v3_client_duplicate(ngx_connection_t *c, ngx_uint_t index);
-ngx_int_t ngx_http_v3_client_ack_header(ngx_connection_t *c,
+ngx_int_t ngx_http_v3_send_duplicate(ngx_connection_t *c, ngx_uint_t index);
+ngx_int_t ngx_http_v3_send_ack_header(ngx_connection_t *c,
     ngx_uint_t stream_id);
-ngx_int_t ngx_http_v3_client_cancel_stream(ngx_connection_t *c,
+ngx_int_t ngx_http_v3_send_cancel_stream(ngx_connection_t *c,
     ngx_uint_t stream_id);
-ngx_int_t ngx_http_v3_client_inc_insert_count(ngx_connection_t *c,
+ngx_int_t ngx_http_v3_send_inc_insert_count(ngx_connection_t *c,
     ngx_uint_t inc);
 
 
index 3d0b091973a0f32a3a4a6ad1d256360e47669ec2..def9aadc71c196b8bfbaadbb109d72a60cdd39e1 100644 (file)
@@ -309,7 +309,7 @@ done:
     ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 parse headers done");
 
     if (st->prefix.insert_count > 0) {
-        if (ngx_http_v3_client_ack_header(c, c->quic->id) != NGX_OK) {
+        if (ngx_http_v3_send_ack_header(c, c->quic->id) != NGX_OK) {
             return NGX_ERROR;
         }
     }
index 4c0da69178ca96692ce2fb4e1a06e7baceac4f4e..a20008c1965503e72ff012582c7b2a7a2f131a7c 100644 (file)
@@ -597,7 +597,7 @@ failed:
 
 
 ngx_int_t
-ngx_http_v3_client_ref_insert(ngx_connection_t *c, ngx_uint_t dynamic,
+ngx_http_v3_send_ref_insert(ngx_connection_t *c, ngx_uint_t dynamic,
     ngx_uint_t index, ngx_str_t *value)
 {
     u_char            *p, buf[NGX_HTTP_V3_PREFIX_INT_LEN * 2];
@@ -643,8 +643,7 @@ failed:
 
 
 ngx_int_t
-ngx_http_v3_client_insert(ngx_connection_t *c, ngx_str_t *name,
-    ngx_str_t *value)
+ngx_http_v3_send_insert(ngx_connection_t *c, ngx_str_t *name, ngx_str_t *value)
 {
     u_char             buf[NGX_HTTP_V3_PREFIX_INT_LEN];
     size_t             n;
@@ -693,7 +692,7 @@ failed:
 
 
 ngx_int_t
-ngx_http_v3_client_set_capacity(ngx_connection_t *c, ngx_uint_t capacity)
+ngx_http_v3_send_set_capacity(ngx_connection_t *c, ngx_uint_t capacity)
 {
     u_char             buf[NGX_HTTP_V3_PREFIX_INT_LEN];
     size_t             n;
@@ -720,7 +719,7 @@ ngx_http_v3_client_set_capacity(ngx_connection_t *c, ngx_uint_t capacity)
 
 
 ngx_int_t
-ngx_http_v3_client_duplicate(ngx_connection_t *c, ngx_uint_t index)
+ngx_http_v3_send_duplicate(ngx_connection_t *c, ngx_uint_t index)
 {
     u_char             buf[NGX_HTTP_V3_PREFIX_INT_LEN];
     size_t             n;
@@ -747,7 +746,7 @@ ngx_http_v3_client_duplicate(ngx_connection_t *c, ngx_uint_t index)
 
 
 ngx_int_t
-ngx_http_v3_client_ack_header(ngx_connection_t *c, ngx_uint_t stream_id)
+ngx_http_v3_send_ack_header(ngx_connection_t *c, ngx_uint_t stream_id)
 {
     u_char             buf[NGX_HTTP_V3_PREFIX_INT_LEN];
     size_t             n;
@@ -774,7 +773,7 @@ ngx_http_v3_client_ack_header(ngx_connection_t *c, ngx_uint_t stream_id)
 
 
 ngx_int_t
-ngx_http_v3_client_cancel_stream(ngx_connection_t *c, ngx_uint_t stream_id)
+ngx_http_v3_send_cancel_stream(ngx_connection_t *c, ngx_uint_t stream_id)
 {
     u_char             buf[NGX_HTTP_V3_PREFIX_INT_LEN];
     size_t             n;
@@ -801,7 +800,7 @@ ngx_http_v3_client_cancel_stream(ngx_connection_t *c, ngx_uint_t stream_id)
 
 
 ngx_int_t
-ngx_http_v3_client_inc_insert_count(ngx_connection_t *c, ngx_uint_t inc)
+ngx_http_v3_send_inc_insert_count(ngx_connection_t *c, ngx_uint_t inc)
 {
     u_char             buf[NGX_HTTP_V3_PREFIX_INT_LEN];
     size_t             n;
index c7bdc26855aa57c8f3841d7f7b842b2794d78b44..f83236c01042e55f72194bc12a6326ffaf48b1c3 100644 (file)
@@ -224,7 +224,7 @@ ngx_http_v3_insert(ngx_connection_t *c, ngx_str_t *name, ngx_str_t *value)
 
     /* TODO increment can be sent less often */
 
-    if (ngx_http_v3_client_inc_insert_count(c, 1) != NGX_OK) {
+    if (ngx_http_v3_send_inc_insert_count(c, 1) != NGX_OK) {
         return NGX_ERROR;
     }