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

Unified Diff: net/tools/quic/quic_spdy_server_stream.cc

Issue 1261273003: relnote: Change the QuicStreamSequencer to call OnDataAvailable instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace DonReading with OnFinRead Created 5 years, 4 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/tools/quic/quic_spdy_server_stream.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_spdy_server_stream.cc
diff --git a/net/tools/quic/quic_spdy_server_stream.cc b/net/tools/quic/quic_spdy_server_stream.cc
index 5c34502b9511ab06814950d4accc0e8ccec1d45a..c47fc0c12890cdbebcff029ff0a61e81563e9e95 100644
--- a/net/tools/quic/quic_spdy_server_stream.cc
+++ b/net/tools/quic/quic_spdy_server_stream.cc
@@ -55,15 +55,15 @@ void QuicSpdyServerStream::OnDataAvailable() {
}
MarkConsumed(iov.iov_len);
}
- if (sequencer()->IsClosed()) {
- OnFinRead();
- } else {
+ if (!sequencer()->IsClosed()) {
sequencer()->SetUnblocked();
+ return;
}
-}
-void QuicSpdyServerStream::OnFinRead() {
- ReliableQuicStream::OnFinRead();
+ // If the sequencer is closed, then the all the body, including the fin,
+ // has been consumed.
+ OnFinRead();
+
if (write_side_closed() || fin_buffered()) {
return;
}
« no previous file with comments | « net/tools/quic/quic_spdy_server_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698