diff src/event/ngx_event_quic.h @ 7992:909b989ec088 quic

QUIC: reworked retransmission mechanism. Instead of timer-based retransmissions with constant packet lifetime, this patch implements ack-based loss detection and probe timeout for the cases, when no ack is received, according to the quic-recovery draft 29.
author Vladimir Homutov <vl@nginx.com>
date Mon, 13 Jul 2020 17:31:29 +0300
parents 3b107aadc9f6
children b276833111cf
line wrap: on
line diff
--- a/src/event/ngx_event_quic.h
+++ b/src/event/ngx_event_quic.h
@@ -45,6 +45,12 @@
 #define NGX_QUIC_INITIAL_RTT                 333 /* ms */
 
 #define NGX_QUIC_HARDCODED_PTO               1000 /* 1s, TODO: collect */
+/* quic-recovery, section 6.1.1, Packet Threshold */
+#define NGX_QUIC_PKT_THR                     3 /* packets */
+/* quic-recovery, section 6.1.2, Time Threshold */
+#define NGX_QUIC_TIME_THR                    1.125
+#define NGX_QUIC_TIME_GRANULARITY            1 /* ms */
+
 #define NGX_QUIC_CC_MIN_INTERVAL             1000 /* 1s */
 
 #define NGX_QUIC_MIN_INITIAL_SIZE            1200