Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1172)

Unified Diff: net/quic/core/reliable_quic_stream.cc

Issue 2328633004: lazy allocation and early release memory in QuicStreamSequencerBuffer. Protected by --quic_reduce_s… (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_stream_sequencer_buffer_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/reliable_quic_stream.cc
diff --git a/net/quic/core/reliable_quic_stream.cc b/net/quic/core/reliable_quic_stream.cc
index 3f1ae0a36981f98badbfa3fd84d83ad484b6222b..a1c439d16f563626645917a5fbe99938722ef3c9 100644
--- a/net/quic/core/reliable_quic_stream.cc
+++ b/net/quic/core/reliable_quic_stream.cc
@@ -353,6 +353,8 @@ void ReliableQuicStream::CloseReadSide() {
DVLOG(1) << ENDPOINT << "Done reading from stream " << id();
read_side_closed_ = true;
+ sequencer_.ReleaseBuffer();
+
if (write_side_closed_) {
DVLOG(1) << ENDPOINT << "Closing stream: " << id();
session_->CloseStream(id());
« no previous file with comments | « net/quic/core/quic_stream_sequencer_buffer_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698