mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-04 19:23:39 +02: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user