QUIC: fixed measuring ACK Delay against 0-RTT packets.

This commit is contained in:
Sergey Kandaurov 2020-10-06 18:08:55 +01:00
parent f09be89a52
commit 46a01acdc0

View File

@ -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) {