gfe-relnote: Stop registering ephemeral QBONE streams in the blocked list. Not flag protected, no functional change other than to reduce memory pressure. Prior to this change, we'd register every QBONE read-only and write-only stream. This takes up memory and CPU, and for no good reason: we'd rather drop than retransmit the packet if we're blocked. Instead, stop doing this entirely. PiperOrigin-RevId: 263245440 Change-Id: Id3b83cbf3788e744e317d9d959fa0d7eca0f8e41
diff --git a/quic/core/quic_session.h b/quic/core/quic_session.h index 2e6e715..57ced3a 100644 --- a/quic/core/quic_session.h +++ b/quic/core/quic_session.h
@@ -319,7 +319,7 @@ // connection-level flow control but not by its own stream-level flow control. // The stream will be given a chance to write when a connection-level // WINDOW_UPDATE arrives. - void MarkConnectionLevelWriteBlocked(QuicStreamId id); + virtual void MarkConnectionLevelWriteBlocked(QuicStreamId id); // Called when stream |id| is done waiting for acks either because all data // gets acked or is not interested in data being acked (which happens when @@ -379,7 +379,7 @@ virtual void StreamDraining(QuicStreamId id); // Returns true if this stream should yield writes to another blocked stream. - bool ShouldYield(QuicStreamId stream_id); + virtual bool ShouldYield(QuicStreamId stream_id); // Set transmission type of next sending packets. void SetTransmissionType(TransmissionType type);