diff --git a/include/haproxy/xprt_quic.h b/include/haproxy/xprt_quic.h index 6ff29b4cd..6457fa4b1 100644 --- a/include/haproxy/xprt_quic.h +++ b/include/haproxy/xprt_quic.h @@ -467,13 +467,14 @@ static inline int quic_packet_number_encode(unsigned char **buf, return 1; } -/* Returns the field value from ACK frame for - * QUIC connection. +/* Returns the field value in milliseconds from ACK frame for + * QUIC connection. Note that the value of coming from + * ACK frame is in microseconds. */ static inline unsigned int quic_ack_delay_ms(struct quic_ack *ack_frm, struct quic_conn *conn) { - return ack_frm->ack_delay << conn->tx.params.ack_delay_exponent; + return (ack_frm->ack_delay << conn->tx.params.ack_delay_exponent) / 1000; } /* Initialize transport parameters with default values (when absent)