mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
BUG/MINOR: quic: Ignored less than 1ms RTTs
Do not ignore very short RTTs (less than 1ms) before computing the smoothed RTT initializing it to an "infinite" value (UINT_MAX). Must be backported to 2.7 and 2.6.
This commit is contained in:
parent
fad0e6cf73
commit
809bd9fed1
@ -3117,13 +3117,13 @@ static int qc_parse_pkt_frms(struct quic_conn *qc, struct quic_rx_packet *pkt,
|
|||||||
{
|
{
|
||||||
unsigned int rtt_sample;
|
unsigned int rtt_sample;
|
||||||
|
|
||||||
rtt_sample = 0;
|
rtt_sample = UINT_MAX;
|
||||||
if (!qc_parse_ack_frm(qc, &frm, qel, &rtt_sample, &pos, end)) {
|
if (!qc_parse_ack_frm(qc, &frm, qel, &rtt_sample, &pos, end)) {
|
||||||
// trace already emitted by function above
|
// trace already emitted by function above
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rtt_sample) {
|
if (rtt_sample != UINT_MAX) {
|
||||||
unsigned int ack_delay;
|
unsigned int ack_delay;
|
||||||
|
|
||||||
ack_delay = !quic_application_pktns(qel->pktns, qc) ? 0 :
|
ack_delay = !quic_application_pktns(qel->pktns, qc) ? 0 :
|
||||||
|
Loading…
Reference in New Issue
Block a user