diff src/event/ngx_event_quic.h @ 8280:b364af7f9f3f quic

Removed ngx_quic_stream_node_t. Now ngx_quic_stream_t is directly inserted into the tree.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 24 Mar 2020 16:38:03 +0300
parents cb75f194f1f0
children 4cf00c14f11a
line wrap: on
line diff
--- a/src/event/ngx_event_quic.h
+++ b/src/event/ngx_event_quic.h
@@ -21,6 +21,9 @@
 #define NGX_QUIC_DEFAULT_ACK_DELAY_EXPONENT  3
 #define NGX_QUIC_DEFAULT_MAX_ACK_DELAY       25
 
+#define NGX_QUIC_STREAM_SERVER_INITIATED     0x01
+#define NGX_QUIC_STREAM_UNIDIRECTIONAL       0x02
+
 
 typedef struct {
     /* configurable */
@@ -46,10 +49,11 @@ typedef struct {
 
 
 struct ngx_quic_stream_s {
+    ngx_rbtree_node_t   node;
+    ngx_connection_t   *parent;
+    ngx_connection_t   *c;
     uint64_t            id;
-    ngx_uint_t          unidirectional:1;
-    ngx_connection_t   *parent;
-    void               *data;
+    ngx_buf_t          *b;
 };