comparison src/event/ngx_event_quic.h @ 7993:b276833111cf quic

QUIC: implemented probe timeout (PTO) calculation.
author Vladimir Homutov <vl@nginx.com>
date Thu, 16 Jul 2020 16:05:44 +0300
parents 909b989ec088
children f9fbeb4ee0de
comparison
equal deleted inserted replaced
7992:909b989ec088 7993:b276833111cf
42 /* sizeof(struct in6_addr) + sizeof(ngx_msec_t) up to AES-256 block size */ 42 /* sizeof(struct in6_addr) + sizeof(ngx_msec_t) up to AES-256 block size */
43 43
44 /* quic-recovery, section 6.2.2, kInitialRtt */ 44 /* quic-recovery, section 6.2.2, kInitialRtt */
45 #define NGX_QUIC_INITIAL_RTT 333 /* ms */ 45 #define NGX_QUIC_INITIAL_RTT 333 /* ms */
46 46
47 #define NGX_QUIC_HARDCODED_PTO 1000 /* 1s, TODO: collect */
48 /* quic-recovery, section 6.1.1, Packet Threshold */ 47 /* quic-recovery, section 6.1.1, Packet Threshold */
49 #define NGX_QUIC_PKT_THR 3 /* packets */ 48 #define NGX_QUIC_PKT_THR 3 /* packets */
50 /* quic-recovery, section 6.1.2, Time Threshold */ 49 /* quic-recovery, section 6.1.2, Time Threshold */
51 #define NGX_QUIC_TIME_THR 1.125 50 #define NGX_QUIC_TIME_THR 1.125
52 #define NGX_QUIC_TIME_GRANULARITY 1 /* ms */ 51 #define NGX_QUIC_TIME_GRANULARITY 1 /* ms */