comparison src/event/ngx_event_quic.h @ 8476:f9fbeb4ee0de quic

QUIC: added limit of queued data. The ngx_quic_queue_frame() functions puts a frame into send queue and schedules a push timer to actually send data. The patch adds tracking for data amount in the queue and sends data immediately if amount of data exceeds limit.
author Vladimir Homutov <vl@nginx.com>
date Thu, 16 Jul 2020 15:02:38 +0300
parents b276833111cf
children f537f99b86ee
comparison
equal deleted inserted replaced
8475:b276833111cf 8476:f9fbeb4ee0de
51 #define NGX_QUIC_TIME_GRANULARITY 1 /* ms */ 51 #define NGX_QUIC_TIME_GRANULARITY 1 /* ms */
52 52
53 #define NGX_QUIC_CC_MIN_INTERVAL 1000 /* 1s */ 53 #define NGX_QUIC_CC_MIN_INTERVAL 1000 /* 1s */
54 54
55 #define NGX_QUIC_MIN_INITIAL_SIZE 1200 55 #define NGX_QUIC_MIN_INITIAL_SIZE 1200
56
57 /* if we have so much data, send immediately */
58 /* TODO: configurable ? */
59 #define NGX_QUIC_MIN_DATA_NODELAY 512 /* bytes */
56 60
57 #define NGX_QUIC_STREAM_SERVER_INITIATED 0x01 61 #define NGX_QUIC_STREAM_SERVER_INITIATED 0x01
58 #define NGX_QUIC_STREAM_UNIDIRECTIONAL 0x02 62 #define NGX_QUIC_STREAM_UNIDIRECTIONAL 0x02
59 63
60 #define NGX_QUIC_STREAM_BUFSIZE 65536 64 #define NGX_QUIC_STREAM_BUFSIZE 65536