diff src/http/v3/ngx_http_v3_streams.c @ 8630:279ad36f2f4b quic

QUIC: renamed c->qs to c->quic.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 10 Nov 2020 19:40:00 +0000
parents 0596fe1aee16
children e1eb7f4ca9f1
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_streams.c
+++ b/src/http/v3/ngx_http_v3_streams.c
@@ -50,7 +50,7 @@ ngx_http_v3_init_connection(ngx_connecti
 
     hc = c->data;
 
-    if (c->qs == NULL) {
+    if (c->quic == NULL) {
         h3c = ngx_pcalloc(c->pool, sizeof(ngx_http_v3_connection_t));
         if (h3c == NULL) {
             return NGX_ERROR;
@@ -69,7 +69,7 @@ ngx_http_v3_init_connection(ngx_connecti
         return NGX_ERROR;
     }
 
-    if ((c->qs->id & NGX_QUIC_STREAM_UNIDIRECTIONAL) == 0) {
+    if ((c->quic->id & NGX_QUIC_STREAM_UNIDIRECTIONAL) == 0) {
         return NGX_OK;
     }
 
@@ -101,7 +101,7 @@ ngx_http_v3_close_uni_stream(ngx_connect
     ngx_http_v3_uni_stream_t  *us;
 
     us = c->data;
-    h3c = c->qs->parent->data;
+    h3c = c->quic->parent->data;
 
     ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 close stream");
 
@@ -131,7 +131,7 @@ ngx_http_v3_read_uni_stream_type(ngx_eve
 
     c = rev->data;
     us = c->data;
-    h3c = c->qs->parent->data;
+    h3c = c->quic->parent->data;
 
     ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 read stream type");
 
@@ -363,7 +363,7 @@ ngx_http_v3_create_push_stream(ngx_conne
         goto failed;
     }
 
-    h3c = c->qs->parent->data;
+    h3c = c->quic->parent->data;
     h3c->npushing++;
 
     cln->handler = ngx_http_v3_push_cleanup;
@@ -419,7 +419,7 @@ ngx_http_v3_get_uni_stream(ngx_connectio
         index = -1;
     }
 
-    h3c = c->qs->parent->data;
+    h3c = c->quic->parent->data;
 
     if (index >= 0) {
         if (h3c->known_streams[index]) {
@@ -476,7 +476,7 @@ ngx_http_v3_send_settings(ngx_connection
     ngx_http_v3_srv_conf_t    *h3scf;
     ngx_http_v3_connection_t  *h3c;
 
-    h3c = c->qs->parent->data;
+    h3c = c->quic->parent->data;
 
     if (h3c->settings_sent) {
         return NGX_OK;
@@ -763,7 +763,7 @@ ngx_http_v3_set_max_push_id(ngx_connecti
 {
     ngx_http_v3_connection_t  *h3c;
 
-    h3c = c->qs->parent->data;
+    h3c = c->quic->parent->data;
 
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0,
                    "http3 MAX_PUSH_ID:%uL", max_push_id);
@@ -786,7 +786,7 @@ ngx_http_v3_cancel_push(ngx_connection_t
     ngx_http_v3_push_t        *push;
     ngx_http_v3_connection_t  *h3c;
 
-    h3c = c->qs->parent->data;
+    h3c = c->quic->parent->data;
 
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0,
                    "http3 CANCEL_PUSH:%uL", push_id);