diff src/event/ngx_event_quic.h @ 8481:0d2b2664b41c quic

QUIC: added "quic" listen parameter. The parameter allows processing HTTP/0.9-2 over QUIC. Also, introduced ngx_http_quic_module and moved QUIC settings there
author Roman Arutyunyan <arut@nginx.com>
date Tue, 21 Jul 2020 23:09:22 +0300
parents f537f99b86ee
children 893b3313f53c
line wrap: on
line diff
--- a/src/event/ngx_event_quic.h
+++ b/src/event/ngx_event_quic.h
@@ -78,9 +78,6 @@ typedef struct {
     ngx_str_t                  initial_scid;
     ngx_str_t                  retry_scid;
 
-    ngx_flag_t                 retry;
-    u_char                     token_key[32]; /* AES 256 */
-
     /* TODO */
     u_char                     stateless_reset_token[16];
     void                      *preferred_address;
@@ -88,6 +85,13 @@ typedef struct {
 
 
 typedef struct {
+    ngx_quic_tp_t              tp;
+    ngx_flag_t                 retry;
+    u_char                     token_key[32]; /* AES 256 */
+} ngx_quic_conf_t;
+
+
+typedef struct {
     uint64_t                   sent;
     uint64_t                   received;
     ngx_queue_t                frames;   /* reorder queue */
@@ -107,7 +111,7 @@ struct ngx_quic_stream_s {
 };
 
 
-void ngx_quic_run(ngx_connection_t *c, ngx_ssl_t *ssl, ngx_quic_tp_t *tp,
+void ngx_quic_run(ngx_connection_t *c, ngx_ssl_t *ssl, ngx_quic_conf_t *conf,
     ngx_connection_handler_pt handler);
 ngx_connection_t *ngx_quic_create_uni_stream(ngx_connection_t *c);
 void ngx_quic_finalize_connection(ngx_connection_t *c, ngx_uint_t err,