Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic.c @ 8133:1d4417e4f2d0 quic
QUIC: fixed measuring ACK Delay against 0-RTT packets.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 06 Oct 2020 18:08:55 +0100 |
parents | 6226f834b420 |
children | 2b11bd029815 |
comparison
equal
deleted
inserted
replaced
8132:6226f834b420 | 8133:1d4417e4f2d0 |
---|---|
1839 */ | 1839 */ |
1840 ngx_quic_discard_ctx(c, ssl_encryption_initial); | 1840 ngx_quic_discard_ctx(c, ssl_encryption_initial); |
1841 qc->validated = 1; | 1841 qc->validated = 1; |
1842 } | 1842 } |
1843 | 1843 |
1844 if (pkt->level == ssl_encryption_early_data | |
1845 || pkt->level == ssl_encryption_application) | |
1846 { | |
1847 ngx_gettimeofday(&pkt->received); | |
1848 } | |
1849 | |
1844 if (pkt->level != ssl_encryption_application) { | 1850 if (pkt->level != ssl_encryption_application) { |
1845 return ngx_quic_payload_handler(c, pkt); | 1851 return ngx_quic_payload_handler(c, pkt); |
1846 } | 1852 } |
1847 | |
1848 ngx_gettimeofday(&pkt->received); | |
1849 | 1853 |
1850 /* switch keys on Key Phase change */ | 1854 /* switch keys on Key Phase change */ |
1851 | 1855 |
1852 if (pkt->key_update) { | 1856 if (pkt->key_update) { |
1853 qc->key_phase ^= 1; | 1857 qc->key_phase ^= 1; |