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

Unified Diff: net/spdy/buffered_spdy_framer.cc

Issue 316983006: SPDY4 shouldn't emit RST_STREAM payloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/buffered_spdy_framer.cc
diff --git a/net/spdy/buffered_spdy_framer.cc b/net/spdy/buffered_spdy_framer.cc
index 5b95be2af2921c21c1a7d9b1d27a7525275791df..8424a15e64d0ba6b15fc03187186ed138f0b1b60 100644
--- a/net/spdy/buffered_spdy_framer.cc
+++ b/net/spdy/buffered_spdy_framer.cc
@@ -298,7 +298,9 @@ SpdyFrame* BufferedSpdyFramer::CreateSynReply(
SpdyFrame* BufferedSpdyFramer::CreateRstStream(
SpdyStreamId stream_id,
SpdyRstStreamStatus status) const {
- SpdyRstStreamIR rst_ir(stream_id, status, "RST");
+ // RST_STREAM payloads are not part of any SPDY spec.
+ // SpdyFramer will accept them, but don't create them.
+ SpdyRstStreamIR rst_ir(stream_id, status, "");
return spdy_framer_.SerializeRstStream(rst_ir);
}
« no previous file with comments | « no previous file | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698