Mercurial > hg > nginx
comparison src/event/ngx_event_quic.h @ 8364:eee307399229 quic
QUIC basic congestion control.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 28 Apr 2020 16:42:43 +0300 |
parents | f175006124d0 |
children | fab75acb1f72 |
comparison
equal
deleted
inserted
replaced
8363:d3395396ce51 | 8364:eee307399229 |
---|---|
29 #define NGX_QUIC_MIN_INITIAL_SIZE 1200 | 29 #define NGX_QUIC_MIN_INITIAL_SIZE 1200 |
30 | 30 |
31 #define NGX_QUIC_STREAM_SERVER_INITIATED 0x01 | 31 #define NGX_QUIC_STREAM_SERVER_INITIATED 0x01 |
32 #define NGX_QUIC_STREAM_UNIDIRECTIONAL 0x02 | 32 #define NGX_QUIC_STREAM_UNIDIRECTIONAL 0x02 |
33 | 33 |
34 #define NGX_QUIC_STREAM_BUFSIZE 16384 | 34 #define NGX_QUIC_STREAM_BUFSIZE 65536 |
35 | 35 |
36 | 36 |
37 typedef struct { | 37 typedef struct { |
38 /* configurable */ | 38 /* configurable */ |
39 ngx_msec_t max_idle_timeout; | 39 ngx_msec_t max_idle_timeout; |
68 struct ngx_quic_stream_s { | 68 struct ngx_quic_stream_s { |
69 ngx_rbtree_node_t node; | 69 ngx_rbtree_node_t node; |
70 ngx_connection_t *parent; | 70 ngx_connection_t *parent; |
71 ngx_connection_t *c; | 71 ngx_connection_t *c; |
72 uint64_t id; | 72 uint64_t id; |
73 uint64_t acked; | |
73 ngx_buf_t *b; | 74 ngx_buf_t *b; |
74 ngx_quic_frames_stream_t fs; | 75 ngx_quic_frames_stream_t fs; |
75 }; | 76 }; |
76 | 77 |
77 | 78 |