]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: quic: fix output of show quic
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 23 Feb 2024 16:28:49 +0000 (17:28 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 23 Feb 2024 16:32:24 +0000 (17:32 +0100)
Output of 'show quic' is messed up since the introduction of reordered
packets counter in the following commit. The new counter is mixed up
with the first stream line. This is due to the wrong placement of the
newline delimiter.

  167e38e0e0296e899aa894d2f3db5ba2a0c68cb5
  MINOR: quic: Add a counter for reordered packets

This should be backported up to 2.6.

src/quic_cli.c

index 56301fa848e1bb6e80e81cfe4478b76307314fa5..f237a1fd02efca694ef0eec17d8c64b3e047bba2 100644 (file)
@@ -204,7 +204,7 @@ static void dump_quic_full(struct show_quic_ctx *ctx, struct quic_conn *qc)
        }
 
        chunk_appendf(&trash, "  srtt=%-4u rttvar=%-4u rttmin=%-4u ptoc=%-4u cwnd=%-6llu"
-                             " mcwnd=%-6llu sentpkts=%-6llu lostpkts=%-6llu\n reorderedpkts=%-6llu",
+                             " mcwnd=%-6llu sentpkts=%-6llu lostpkts=%-6llu reorderedpkts=%-6llu\n",
                      qc->path->loss.srtt, qc->path->loss.rtt_var,
                      qc->path->loss.rtt_min, qc->path->loss.pto_count, (ullong)qc->path->cwnd,
                      (ullong)qc->path->mcwnd, (ullong)qc->cntrs.sent_pkt, (ullong)qc->path->loss.nb_lost_pkt, (ullong)qc->path->loss.nb_reordered_pkt);