]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Do not display any timer value from process_timer()
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 30 Mar 2022 12:36:40 +0000 (14:36 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 1 Apr 2022 14:22:52 +0000 (16:22 +0200)
This is confusing to display the connection timer from this function as it is not
supposed to update it. Only qc_set_timer() should do that.

src/xprt_quic.c

index 7ba47a6f473153379b28b96b2bf0ef4dbc25f98a..dd9c3543ae08c7aed679454bffe43e722facfba0 100644 (file)
@@ -529,7 +529,7 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace
                                }
                        }
 
-                       if (!(mask & QUIC_EV_CONN_SPTO) && qc->timer_task) {
+                       if (!(mask & (QUIC_EV_CONN_SPTO|QUIC_EV_CONN_PTIMER)) && qc->timer_task) {
                                chunk_appendf(&trace_buf,
                                              " expire=%dms", TICKS_TO_MS(qc->timer - now_ms));
                        }