@@ -2448,7 +2448,6 @@ int picoquic_init_cnxid_stash(picoquic_cnx_t* cnx)
2448
2448
else {
2449
2449
memset (remote_cnxid_stash -> cnxid_stash_first , 0 , sizeof (picoquic_remote_cnxid_t ));
2450
2450
remote_cnxid_stash -> cnxid_stash_first -> nb_path_references ++ ;
2451
- picoquic_init_packet_ctx (cnx , & remote_cnxid_stash -> cnxid_stash_first -> pkt_ctx , picoquic_packet_context_application );
2452
2451
2453
2452
/* Initialize the reset secret to a random value. This
2454
2453
* will prevent spurious matches to an all zero value, for example.
@@ -2532,7 +2531,6 @@ uint64_t picoquic_add_remote_cnxid_to_stash(picoquic_cnx_t* cnx, picoquic_remote
2532
2531
memset (stashed , 0 , sizeof (picoquic_remote_cnxid_t ));
2533
2532
(void )picoquic_parse_connection_id (cnxid_bytes , cid_length , & stashed -> cnx_id );
2534
2533
stashed -> sequence = sequence ;
2535
- picoquic_init_packet_ctx (cnx , & stashed -> pkt_ctx , picoquic_packet_context_application );
2536
2534
memcpy (stashed -> reset_secret , secret_bytes , PICOQUIC_RESET_SECRET_SIZE );
2537
2535
stashed -> next = NULL ;
2538
2536
@@ -2597,39 +2595,6 @@ picoquic_remote_cnxid_t* picoquic_remove_cnxid_from_stash(picoquic_cnx_t* cnx, p
2597
2595
}
2598
2596
/* Actually remove the element from the stash */
2599
2597
if (stashed != NULL ) {
2600
- picoquic_packet_context_t * pkt_ctx = & removed -> pkt_ctx ;
2601
-
2602
- if (recycle_packets ) {
2603
- picoquic_packet_t * recycled = pkt_ctx -> pending_first ;
2604
- while (recycled != NULL ) {
2605
- picoquic_packet_t * recycled_previous = recycled -> packet_next ;
2606
- int packet_is_pure_ack = 0 ;
2607
- int do_not_detect_spurious = 0 ;
2608
- int add_to_data_repeat_queue = 0 ;
2609
- size_t length = 0 ;
2610
- int ret = picoquic_copy_before_retransmit (recycled , cnx , NULL , 0 , & packet_is_pure_ack ,
2611
- & do_not_detect_spurious , 1 , & length , & add_to_data_repeat_queue );
2612
- if (ret != 0 || length != 0 ) {
2613
- /* Unexpected! */
2614
- DBG_PRINTF ("Recycle stashed packet returns %d, length %zu\n" , ret , length );
2615
- }
2616
- (void )picoquic_dequeue_retransmit_packet (cnx , pkt_ctx , recycled , 1 , add_to_data_repeat_queue );
2617
- recycled = recycled_previous ;
2618
- }
2619
- }
2620
- else
2621
- {
2622
- while (pkt_ctx -> pending_last != NULL ) {
2623
- (void )picoquic_dequeue_retransmit_packet (cnx , pkt_ctx , pkt_ctx -> pending_last , 1 , 0 );
2624
- }
2625
- }
2626
-
2627
- while (pkt_ctx -> retransmitted_newest != NULL ) {
2628
- picoquic_dequeue_retransmitted_packet (cnx , pkt_ctx , pkt_ctx -> retransmitted_newest );
2629
- }
2630
-
2631
- pkt_ctx -> retransmitted_oldest = NULL ;
2632
-
2633
2598
stashed = stashed -> next ;
2634
2599
if (previous == NULL ) {
2635
2600
remote_cnxid_stash -> cnxid_stash_first = stashed ;
@@ -3351,7 +3316,7 @@ picoquic_local_cnxid_t* picoquic_create_local_cnxid(picoquic_cnx_t* cnx,
3351
3316
if (l_cid != NULL ) {
3352
3317
memset (l_cid , 0 , sizeof (picoquic_local_cnxid_t ));
3353
3318
l_cid -> create_time = current_time ;
3354
- picoquic_init_ack_ctx ( cnx , & l_cid -> ack_ctx );
3319
+
3355
3320
if (cnx -> quic -> local_cnxid_length == 0 ) {
3356
3321
is_unique = 1 ;
3357
3322
}
@@ -3435,9 +3400,6 @@ void picoquic_delete_local_cnxid_listed(picoquic_cnx_t* cnx,
3435
3400
l_cid -> registered_cnx = NULL ;
3436
3401
}
3437
3402
3438
- /* Clear the associated ack context */
3439
- picoquic_clear_ack_ctx (& l_cid -> ack_ctx );
3440
-
3441
3403
if (local_cnxid_list != NULL ) {
3442
3404
picoquic_local_cnxid_t * next = local_cnxid_list -> local_cnxid_first ;
3443
3405
0 commit comments