From 46a01acdc0ba98014bcd282628453f59954f9a3a Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Tue, 6 Oct 2020 18:08:55 +0100 Subject: QUIC: fixed measuring ACK Delay against 0-RTT packets. --- src/event/ngx_event_quic.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index f503c48ba..c6a249b42 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -1841,12 +1841,16 @@ ngx_quic_process_packet(ngx_connection_t *c, ngx_quic_conf_t *conf, qc->validated = 1; } + if (pkt->level == ssl_encryption_early_data + || pkt->level == ssl_encryption_application) + { + ngx_gettimeofday(&pkt->received); + } + if (pkt->level != ssl_encryption_application) { return ngx_quic_payload_handler(c, pkt); } - ngx_gettimeofday(&pkt->received); - /* switch keys on Key Phase change */ if (pkt->key_update) { -- cgit