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

Unified Diff: net/quic/quic_session.cc

Issue 14651009: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix integer constant is too large for 'unsigned long' type Created 7 years, 7 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/quic_session.h ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_session.cc
diff --git a/net/quic/quic_session.cc b/net/quic/quic_session.cc
index 35f764fd1bbc9ddcfaa05d4118ad371864413ba4..8cd605a28f53d56ae2350dd49552d45521ba7320 100644
--- a/net/quic/quic_session.cc
+++ b/net/quic/quic_session.cc
@@ -108,6 +108,20 @@ bool QuicSession::OnPacket(const IPEndPoint& self_address,
stream->OnStreamFrame(frames[i]);
}
}
+
+ while (!decompression_blocked_streams_.empty()) {
+ QuicHeaderId header_id = decompression_blocked_streams_.begin()->first;
+ if (header_id == decompressor_.current_header_id()) {
+ QuicStreamId stream_id = decompression_blocked_streams_.begin()->second;
+ decompression_blocked_streams_.erase(header_id);
+ ReliableQuicStream* stream = GetStream(stream_id);
+ if (!stream) {
+ connection()->SendConnectionClose(
+ QUIC_STREAM_RST_BEFORE_HEADERS_DECOMPRESSED);
+ }
+ stream->OnDecompressorAvailable();
+ }
+ }
return true;
}
@@ -302,6 +316,11 @@ void QuicSession::MarkWriteBlocked(QuicStreamId id) {
write_blocked_streams_.AddBlockedObject(id);
}
+void QuicSession::MarkDecompressionBlocked(QuicHeaderId header_id,
+ QuicStreamId stream_id) {
+ decompression_blocked_streams_[header_id] = stream_id;
+}
+
void QuicSession::PostProcessAfterData() {
STLDeleteElements(&closed_streams_);
closed_streams_.clear();
« no previous file with comments | « net/quic/quic_session.h ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698