comparison src/event/ngx_event_quic_transport.h @ 8603:c5ea341f705a quic

QUIC: optimized acknowledgement generation. For application level packets, only every second packet is now acknowledged, respecting max ack delay. 13.2.1 Sending ACK Frames In order to assist loss detection at the sender, an endpoint SHOULD generate and send an ACK frame without delay when it receives an ack- eliciting packet either: * when the received packet has a packet number less than another ack-eliciting packet that has been received, or * when the packet has a packet number larger than the highest- numbered ack-eliciting packet that has been received and there are missing packets between that packet and this packet. 13.2.2. Acknowledgement Frequency A receiver SHOULD send an ACK frame after receiving at least two ack-eliciting packets.
author Vladimir Homutov <vl@nginx.com>
date Fri, 23 Oct 2020 17:08:50 +0300
parents 38c7dd720774
children b3d9e57d0f62
comparison
equal deleted inserted replaced
8602:454aa886c5f3 8603:c5ea341f705a
291 typedef struct { 291 typedef struct {
292 ngx_log_t *log; 292 ngx_log_t *log;
293 293
294 struct ngx_quic_secret_s *secret; 294 struct ngx_quic_secret_s *secret;
295 struct ngx_quic_secret_s *next; 295 struct ngx_quic_secret_s *next;
296 struct timeval received; 296 ngx_msec_t received;
297 uint64_t number; 297 uint64_t number;
298 uint8_t num_len; 298 uint8_t num_len;
299 uint32_t trunc; 299 uint32_t trunc;
300 uint8_t flags; 300 uint8_t flags;
301 uint32_t version; 301 uint32_t version;