You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if info.ack_eliciting && self.path.challenge.is_none(){
1585
1585
// Only pass ACKs to the congestion controller if we are not validating the current
1586
1586
// path, so as to ignore any ACKs from older paths still coming in.
@@ -1751,7 +1751,7 @@ impl Connection {
1751
1751
now,
1752
1752
self.orig_rem_cid,
1753
1753
);
1754
-
self.remove_in_flight(packet,&info);
1754
+
self.remove_in_flight(&info);
1755
1755
for frame in info.stream_frames{
1756
1756
self.streams.retransmit(frame);
1757
1757
}
@@ -1786,7 +1786,7 @@ impl Connection {
1786
1786
// Handle a lost MTU probe
1787
1787
ifletSome(packet) = lost_mtu_probe {
1788
1788
let info = self.spaces[SpaceId::Data].take(packet).unwrap();// safe: lost_mtu_probe is omitted from lost_packets, and therefore must not have been removed yet
1789
-
self.remove_in_flight(packet,&info);
1789
+
self.remove_in_flight(&info);
1790
1790
self.path.mtud.on_probe_lost();
1791
1791
self.stats.path.lost_plpmtud_probes += 1;
1792
1792
}
@@ -2189,8 +2189,8 @@ impl Connection {
2189
2189
space.time_of_last_ack_eliciting_packet = None;
2190
2190
space.loss_time = None;
2191
2191
let sent_packets = mem::take(&mut space.sent_packets);
2192
-
for(pn,packet)in sent_packets.into_iter(){
2193
-
self.remove_in_flight(pn,&packet);
2192
+
for packet in sent_packets.into_values(){
2193
+
self.remove_in_flight(&packet);
2194
2194
}
2195
2195
self.set_loss_detection_timer(now)
2196
2196
}
@@ -2474,7 +2474,7 @@ impl Connection {
2474
2474
2475
2475
let space = &mutself.spaces[SpaceId::Initial];
2476
2476
ifletSome(info) = space.take(0){
2477
-
self.on_packet_acked(now,0,info);
2477
+
self.on_packet_acked(now, info);
2478
2478
};
2479
2479
2480
2480
self.discard_space(now,SpaceId::Initial);// Make sure we clean up after any retransmitted Initials
@@ -2494,8 +2494,8 @@ impl Connection {
2494
2494
2495
2495
// Retransmit all 0-RTT data
2496
2496
let zero_rtt = mem::take(&mutself.spaces[SpaceId::Data].sent_packets);
0 commit comments