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

Unified Diff: net/spdy/spdy_test_util_spdy2.cc

Issue 14232014: Correctly handle SPDY GOAWAY frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
Index: net/spdy/spdy_test_util_spdy2.cc
diff --git a/net/spdy/spdy_test_util_spdy2.cc b/net/spdy/spdy_test_util_spdy2.cc
index dd340796e90116d2f8ab73edcb50f71a54bc27d9..3cee6513cf877ae16d98ed22863d234cc6ac6716 100644
--- a/net/spdy/spdy_test_util_spdy2.cc
+++ b/net/spdy/spdy_test_util_spdy2.cc
@@ -146,8 +146,14 @@ SpdyFrame* ConstructSpdyPing(uint32 ping_id) {
// Construct a SPDY GOAWAY frame.
// Returns the constructed frame. The caller takes ownership of the frame.
SpdyFrame* ConstructSpdyGoAway() {
+ return ConstructSpdyGoAway(0);
+}
+
+// Construct a SPDY GOAWAY frame.
akalin 2013/04/17 21:14:20 i don't know if it's worth having the same comment
Ryan Hamilton 2013/04/18 00:30:40 Yeah, I was surprised to see them too, but decided
akalin 2013/04/18 01:29:59 even better!
+// Returns the constructed frame. The caller takes ownership of the frame.
+SpdyFrame* ConstructSpdyGoAway(SpdyStreamId last_good_stream_id) {
BufferedSpdyFramer framer(2, false);
- return framer.CreateGoAway(0, GOAWAY_OK);
+ return framer.CreateGoAway(last_good_stream_id, GOAWAY_OK);
}
// Construct a SPDY WINDOW_UPDATE frame.

Powered by Google App Engine
This is Rietveld 408576698