From ffc41ce8a0952b2973a52b25da5142fade09b1b5 Mon Sep 17 00:00:00 2001 From: Christian Huitema Date: Sun, 14 Jan 2024 11:51:32 -0800 Subject: [PATCH 1/2] Add traces to debug handshake pto --- picoquic/sender.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/picoquic/sender.c b/picoquic/sender.c index 40bcccce6..e9fc90e8e 100644 --- a/picoquic/sender.c +++ b/picoquic/sender.c @@ -3217,6 +3217,13 @@ int picoquic_prepare_packet_almost_ready(picoquic_cnx_t* cnx, picoquic_path_t* p } } + if (length == 0 && cnx->local_parameters.max_idle_timeout == 30001 && cnx->client_mode && + cnx->pkt_ctx[picoquic_packet_context_handshake].pending_first != NULL) { + picoquic_log_app_message(cnx, "Not repeating handshake, t = %" PRIu64", cnxid: %s, nb_retrans: %d, wake: %" PRIu64, + (current_time - cnx->start_time), (path_x->p_local_cnxid == NULL)?"absent":"present", + cnx->path[0]->nb_retransmit, cnx->next_wake_time - cnx->start_time); + } + if (length == 0) { picoquic_packet_context_t* pkt_ctx = (cnx->is_multipath_enabled) ? &path_x->p_remote_cnxid->pkt_ctx : &cnx->pkt_ctx[pc]; From 753ea3fd5cc8d63354caad09709045bd31191d67 Mon Sep 17 00:00:00 2001 From: Christian Huitema Date: Sun, 14 Jan 2024 12:04:32 -0800 Subject: [PATCH 2/2] Fix int/uint64 format --- picoquic/sender.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picoquic/sender.c b/picoquic/sender.c index e9fc90e8e..faffac4d0 100644 --- a/picoquic/sender.c +++ b/picoquic/sender.c @@ -3219,7 +3219,7 @@ int picoquic_prepare_packet_almost_ready(picoquic_cnx_t* cnx, picoquic_path_t* p if (length == 0 && cnx->local_parameters.max_idle_timeout == 30001 && cnx->client_mode && cnx->pkt_ctx[picoquic_packet_context_handshake].pending_first != NULL) { - picoquic_log_app_message(cnx, "Not repeating handshake, t = %" PRIu64", cnxid: %s, nb_retrans: %d, wake: %" PRIu64, + picoquic_log_app_message(cnx, "Not repeating handshake, t = %" PRIu64", cnxid: %s, nb_retrans: %" PRIu64 ", wake: % " PRIu64, (current_time - cnx->start_time), (path_x->p_local_cnxid == NULL)?"absent":"present", cnx->path[0]->nb_retransmit, cnx->next_wake_time - cnx->start_time); }