gfe-relnote: In QUIC, do not bother stream ID manager on stream closed if connection has already been closed. Protected by existing gfe2_reloadable_flag_quic_enable_version_t099 or gfe2_reloadable_flag_quic_enable_version_draft_25. PiperOrigin-RevId: 296515430 Change-Id: I372a2bcfda88c702cd95bb162fb96b6cf7ce7ed2
diff --git a/quic/core/quic_session.cc b/quic/core/quic_session.cc index c78bb66..a47c265 100644 --- a/quic/core/quic_session.cc +++ b/quic/core/quic_session.cc
@@ -922,7 +922,8 @@ } else if (VersionHasIetfQuicFrames(transport_version())) { // Stream was not draining, but we did have a fin or rst, so we can now // free the stream ID if version 99. - if (had_fin_or_rst) { + if (had_fin_or_rst && connection_->connected()) { + // Do not bother informing stream ID manager if connection is closed. v99_streamid_manager_.OnStreamClosed(stream_id); } }