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

Unified Diff: net/spdy/spdy_session.cc

Issue 2820163004: Retry request upon GOAWAY frame with NO_ERROR. (Closed)
Patch Set: Created 3 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
« net/base/net_error_list.h ('K') | « net/spdy/spdy_network_transaction_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.cc
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index da91d6ce1104882311610b724f68c789f262ebc5..e1048324751292bbdf3f583d5bea90e7d12f61b8 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -2695,6 +2695,8 @@ void SpdySession::OnGoAway(SpdyStreamId last_accepted_stream_id,
if (error_code == ERROR_CODE_HTTP_1_1_REQUIRED) {
// TODO(bnc): Record histogram with number of open streams capped at 50.
DoDrainSession(ERR_HTTP_1_1_REQUIRED, "HTTP_1_1_REQUIRED for stream.");
+ } else if (error_code == ERROR_CODE_NO_ERROR) {
Zhongyi Shi 2017/04/19 00:40:28 I am not familiar with SPDY code, but according to
Bence 2017/04/19 12:12:15 Excellent questions. In StartGoingAway() there is
Zhongyi Shi 2017/04/19 17:19:18 Ah, I see, thanks for the clarification and code w
+ StartGoingAway(last_accepted_stream_id, ERR_SPDY_SERVER_REFUSED_STREAM);
} else {
StartGoingAway(last_accepted_stream_id, ERR_ABORTED);
}
« net/base/net_error_list.h ('K') | « net/spdy/spdy_network_transaction_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698