@@ -1095,7 +1095,8 @@ xqc_conn_destroy(xqc_connection_t *xc)
1095
1095
"first_send_delay:%ui|conn_persist:%ui|keyupdate_cnt:%d|err:0x%xi|close_msg:%s|%s|"
1096
1096
"hsk_recv:%ui|close_recv:%ui|close_send:%ui|last_recv:%ui|last_send:%ui|"
1097
1097
"mp_enable:%ud|create:%ud|validated:%ud|active:%ud|path_info:%s|alpn:%*s|rebind_count:%d|"
1098
- "rebind_valid:%d|rtx_pkt:%ud|tlp_pkt:%ud|snd_pkt:%ud|spurious_loss:%ud|detected_loss:%ud|" ,
1098
+ "rebind_valid:%d|rtx_pkt:%ud|tlp_pkt:%ud|snd_pkt:%ud|spurious_loss:%ud|detected_loss:%ud|"
1099
+ "max_pto:%ud|finished_streams:%ud|cli_bidi_s:%ud|svr_bidi_s:%ud|" ,
1099
1100
xc ,
1100
1101
xc -> conn_flag & XQC_CONN_FLAG_HAS_0RTT ? 1 :0 ,
1101
1102
xc -> conn_flag & XQC_CONN_FLAG_0RTT_OK ? 1 :0 ,
@@ -1112,7 +1113,8 @@ xqc_conn_destroy(xqc_connection_t *xc)
1112
1113
xc -> enable_multipath , xc -> create_path_count , xc -> validated_path_count , xc -> active_path_count ,
1113
1114
conn_stats .conn_info , out_alpn_len , out_alpn , conn_stats .total_rebind_count ,
1114
1115
conn_stats .total_rebind_valid , conn_stats .lost_count , conn_stats .tlp_count ,
1115
- conn_stats .send_count , conn_stats .spurious_loss_count , xc -> detected_loss_cnt );
1116
+ conn_stats .send_count , conn_stats .spurious_loss_count , xc -> detected_loss_cnt ,
1117
+ xc -> max_pto_cnt , xc -> finished_streams , xc -> cli_bidi_streams , xc -> svr_bidi_streams );
1116
1118
xqc_log_event (xc -> log , CON_CONNECTION_CLOSED , xc );
1117
1119
1118
1120
if (xc -> conn_flag & XQC_CONN_FLAG_WAIT_WAKEUP ) {
@@ -2394,7 +2396,6 @@ xqc_path_send_one_or_two_ack_elicit_pkts(xqc_path_ctx_t *path,
2394
2396
xqc_list_head_t * sndq ;
2395
2397
xqc_int_t probe_num ;
2396
2398
xqc_bool_t send_hsd ;
2397
- xqc_bool_t send_hsd_next ;
2398
2399
int has_reinjection = 0 ;
2399
2400
2400
2401
c = path -> parent_conn ;
@@ -2404,17 +2405,18 @@ xqc_path_send_one_or_two_ack_elicit_pkts(xqc_path_ctx_t *path,
2404
2405
shall send HANDSHAKE_DONE on PTO as it has not been acknowledged. */
2405
2406
probe_num = XQC_CONN_PTO_PKT_CNT_MAX ;
2406
2407
send_hsd = XQC_FALSE ;
2407
- send_hsd_next = XQC_FALSE ;
2408
2408
2409
2409
packet_out_last_sent = NULL ;
2410
2410
packet_out_later_send = NULL ;
2411
2411
2412
2412
xqc_log (c -> log , XQC_LOG_DEBUG , "|send two ack-eliciting pkts"
2413
2413
"|path:%ui|pns:%d|" , path -> path_id , pns );
2414
2414
2415
- /* if server's HANDSHAKE_DONE frame has not been acked, try to send it */
2415
+ /* if server's HANDSHAKE_DONE frame was sent and has not been acked, try to
2416
+ send it */
2416
2417
if ((c -> conn_type == XQC_CONN_TYPE_SERVER )
2417
- && !(c -> conn_flag & XQC_CONN_FLAG_HANDSHAKE_DONE_ACKED ))
2418
+ && !(c -> conn_flag & XQC_CONN_FLAG_HANDSHAKE_DONE_ACKED )
2419
+ && c -> conn_flag & XQC_CONN_FLAG_HANDSHAKE_DONE_SENT )
2418
2420
{
2419
2421
send_hsd = XQC_TRUE ;
2420
2422
}
@@ -4473,7 +4475,7 @@ xqc_conn_set_cid_retired_ts(xqc_connection_t *conn, xqc_cid_inner_t *inner_cid)
4473
4475
4474
4476
ret = xqc_cid_switch_to_next_state (& conn -> scid_set .cid_set , inner_cid , XQC_CID_RETIRED );
4475
4477
if (ret != XQC_OK ) {
4476
- xqc_log (conn -> log , XQC_LOG_ERROR , "|set cid retired error|" );
4478
+ xqc_log (conn -> log , XQC_LOG_ERROR , "|set cid retired error|ret:%d" , ret );
4477
4479
return ret ;
4478
4480
}
4479
4481
0 commit comments