comparison src/event/quic/ngx_event_quic_connection.h @ 8797:4715f3e669f1 quic

QUIC: updated specification references. This includes updating citations and further clarification.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 16 Jun 2021 11:55:12 +0300
parents 004172345bdc
children ad046179eb91
comparison
equal deleted inserted replaced
8796:1fec68e322d0 8797:4715f3e669f1
36 #include <ngx_event_quic_ack.h> 36 #include <ngx_event_quic_ack.h>
37 #include <ngx_event_quic_output.h> 37 #include <ngx_event_quic_output.h>
38 #include <ngx_event_quic_socket.h> 38 #include <ngx_event_quic_socket.h>
39 39
40 40
41 /* quic-recovery, section 6.2.2, kInitialRtt */ 41 /* RFC 9002, 6.2.2. Handshakes and New Paths: kInitialRtt */
42 #define NGX_QUIC_INITIAL_RTT 333 /* ms */ 42 #define NGX_QUIC_INITIAL_RTT 333 /* ms */
43 43
44 #define NGX_QUIC_UNSET_PN (uint64_t) -1 44 #define NGX_QUIC_UNSET_PN (uint64_t) -1
45 45
46 #define NGX_QUIC_SEND_CTX_LAST (NGX_QUIC_ENCRYPTION_LAST - 1) 46 #define NGX_QUIC_SEND_CTX_LAST (NGX_QUIC_ENCRYPTION_LAST - 1)
141 ngx_msec_t recovery_start; 141 ngx_msec_t recovery_start;
142 } ngx_quic_congestion_t; 142 } ngx_quic_congestion_t;
143 143
144 144
145 /* 145 /*
146 * 12.3. Packet Numbers 146 * RFC 9000, 12.3. Packet Numbers
147 * 147 *
148 * Conceptually, a packet number space is the context in which a packet 148 * Conceptually, a packet number space is the context in which a packet
149 * can be processed and acknowledged. Initial packets can only be sent 149 * can be processed and acknowledged. Initial packets can only be sent
150 * with Initial packet protection keys and acknowledged in packets which 150 * with Initial packet protection keys and acknowledged in packets that
151 * are also Initial packets. 151 * are also Initial packets.
152 */ 152 */
153 struct ngx_quic_send_ctx_s { 153 struct ngx_quic_send_ctx_s {
154 enum ssl_encryption_level_t level; 154 enum ssl_encryption_level_t level;
155 155
156 ngx_chain_t *crypto; 156 ngx_chain_t *crypto;
157 uint64_t crypto_received; 157 uint64_t crypto_received;