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

Unified Diff: net/spdy/spdy_stream.cc

Issue 2596703002: http2: Update priorities of pushed streams (Closed)
Patch Set: Created 4 years 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
Index: net/spdy/spdy_stream.cc
diff --git a/net/spdy/spdy_stream.cc b/net/spdy/spdy_stream.cc
index c22928ed4bc4c9b5287d91a12d1b8b0145b1d761..0490e0e1c3d1d0a2ab17a1b39d50390dfe80ad22 100644
--- a/net/spdy/spdy_stream.cc
+++ b/net/spdy/spdy_stream.cc
@@ -589,6 +589,11 @@ void SpdyStream::OnPaddingConsumed(size_t len) {
void SpdyStream::OnFrameWriteComplete(SpdyFrameType frame_type,
size_t frame_size) {
+ // PRIORITY writes are allowed at any time and do not trigger a state update.
+ if (frame_type == PRIORITY) {
+ return;
+ }
+
DCHECK_NE(type_, SPDY_PUSH_STREAM);
CHECK(frame_type == HEADERS || frame_type == DATA) << frame_type;

Powered by Google App Engine
This is Rietveld 408576698