Close connection on incoming PRIORITY_UPDATE frame with invalid stream ID.
gfe-relnote: n/a, change to QUIC v99-only code. Protected by existing disabled gfe2_reloadable_flag_quic_enable_version_99.
PiperOrigin-RevId: 290870791
Change-Id: Ie618cfe2479ae1f7f0151b0bc03a939aec9e87b6
diff --git a/quic/core/quic_session.h b/quic/core/quic_session.h
index f473156..84ba8e1 100644
--- a/quic/core/quic_session.h
+++ b/quic/core/quic_session.h
@@ -544,6 +544,10 @@
// Returns the number of open dynamic streams.
uint64_t GetNumOpenDynamicStreams() const;
+ // Returns the maximum bidirectional streams parameter sent with the handshake
+ // as a transport parameter, or in the most recent MAX_STREAMS frame.
+ QuicStreamCount GetAdvertisedMaxIncomingBidirectionalStreams() const;
+
// Performs the work required to close |stream_id|. If |locally_reset|
// then the stream has been reset by this endpoint, not by the peer.
virtual void CloseStreamInner(QuicStreamId stream_id, bool locally_reset);