Skip to content

Commit a62c56c

Browse files
committed
Don't queue a PING for a TLP if there's already an IMMEDIATE_ACK
1 parent 8d6e48c commit a62c56c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

quinn-proto/src/connection/spaces.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ impl PacketSpace {
147147
// Nothing new to send and nothing to retransmit, so fall back on a ping. This should only
148148
// happen in rare cases during the handshake when the server becomes blocked by
149149
// anti-amplification.
150-
self.ping_pending = true;
150+
if !self.immediate_ack_pending {
151+
self.ping_pending = true;
152+
}
151153
}
152154

153155
/// Get the next outgoing packet number in this space

0 commit comments

Comments
 (0)