From 953c7dc2b9d905fd8e30e46337dd280726475989 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 15 Nov 2023 11:07:50 +0100 Subject: [PATCH] MINOR: quic: Dump the expiration date of the idle timer task This date is shared between the idle timer and hanshake timeout. So, it should be useful to dump the expiration date of the idle timer task itself, in place of the idle timer expiration date. This way, the handshake timeout value will be visible during the handshake from CLI "show quic full" command. --- src/quic_cli.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/quic_cli.c b/src/quic_cli.c index 71a6175..91caba2 100644 --- a/src/quic_cli.c +++ b/src/quic_cli.c @@ -161,9 +161,11 @@ static void dump_quic_full(struct show_quic_ctx *ctx, struct quic_conn *qc) else chunk_appendf(&trash, "mux=released "); - expire = qc->idle_expire; - chunk_appendf(&trash, "expire=%02ds ", - TICKS_TO_MS(tick_remain(now_ms, expire)) / 1000); + if (qc->idle_timer_task) { + expire = qc->idle_timer_task->expire; + chunk_appendf(&trash, "expire=%02ds ", + TICKS_TO_MS(tick_remain(now_ms, expire)) / 1000); + } chunk_appendf(&trash, "\n"); -- 1.7.10.4