mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
BUG/MINOR: quic: fix fc_rtt/srtt values
QUIC has recently implement get_info callback to return RTT/sRTT values. However, it uses milliseconds, contrary to TCP which uses microseconds. This cause smp fetch functions to return invalid values. Fix this by converting QUIC values to microseconds. This does not need to be backported.
This commit is contained in:
parent
4b0bda42f7
commit
522c3bea2c
1 changed files with 2 additions and 2 deletions
|
|
@ -702,8 +702,8 @@ static int quic_get_info(struct connection *conn, long long int *info, int info_
|
|||
struct quic_conn *qc = conn->handle.qc;
|
||||
|
||||
switch (info_num) {
|
||||
case 0: *info = qc->path->loss.srtt; break;
|
||||
case 1: *info = qc->path->loss.rtt_var; break;
|
||||
case 0: *info = qc->path->loss.srtt * 1000; break;
|
||||
case 1: *info = qc->path->loss.rtt_var * 1000; break;
|
||||
case 3: *info = qc->path->loss.nb_lost_pkt; break;
|
||||
case 7: *info = qc->path->loss.nb_reordered_pkt; break;
|
||||
default: return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue