Skip to content

Commit

Permalink
Merge pull request #1619 from private-octopus/handshake-pto-bug
Browse files Browse the repository at this point in the history
Add traces to debug handshake pto
  • Loading branch information
huitema authored Jan 14, 2024
2 parents 40ecb88 + 753ea3f commit 45c2dbd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions picoquic/sender.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: %" 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);
}

if (length == 0) {
picoquic_packet_context_t* pkt_ctx = (cnx->is_multipath_enabled) ?
&path_x->p_remote_cnxid->pkt_ctx : &cnx->pkt_ctx[pc];
Expand Down

0 comments on commit 45c2dbd

Please sign in to comment.