Change QuicStream::CloseConnectionWithDetails() to QuicStream::OnUnrecoverableError. The stream shouldn't be able to instruct the session on what to do. Instead, it should just report its state change and let the session handle it. gfe-relnote: name change only. Not protected. PiperOrigin-RevId: 294966339 Change-Id: Ibff2ed7169d0964ea5f19823445f5aa9ce8c5916
diff --git a/quic/quic_transport/quic_transport_stream.cc b/quic/quic_transport/quic_transport_stream.cc index 2852442..2824771 100644 --- a/quic/quic_transport/quic_transport_stream.cc +++ b/quic/quic_transport/quic_transport_stream.cc
@@ -78,7 +78,7 @@ QUIC_BUG << "WriteMemSlices() unexpectedly partially consumed the input " "data, provided: " << data.size() << ", written: " << consumed.bytes_consumed; - CloseConnectionWithDetails( + OnUnrecoverableError( QUIC_INTERNAL_ERROR, "WriteMemSlices() unexpectedly partially consumed the input data"); return false;