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

Unified Diff: net/spdy/spdy_session.cc

Issue 2669263002: Add missing case in MapFramerErrorToNetError (SpdyFramer::SPDY_OVERSIZED_PAYLOAD) (Closed)
Patch Set: Created 3 years, 11 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_session_unittest.cc » ('j') | 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 a7287cdecf96f9740a1e0e9f89c7f8de61049758..ad972af0e21ed9c7bc9d0178ee18ca81feb5c812 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -446,6 +446,8 @@ Error MapFramerErrorToNetError(SpdyFramer::SpdyFramerError err) {
return ERR_SPDY_FRAME_SIZE_ERROR;
case SpdyFramer::SPDY_INVALID_STREAM_ID:
return ERR_SPDY_PROTOCOL_ERROR;
+ case SpdyFramer::SPDY_OVERSIZED_PAYLOAD:
+ return ERR_SPDY_FRAME_SIZE_ERROR;
default:
mmenke 2017/02/02 17:24:31 Suggest removing the default case from these - tha
Bence 2017/02/02 20:32:24 Yes please. switch() without default case will ma
Maks Orlovich 2017/02/02 21:10:14 Likewise.
NOTREACHED();
return ERR_SPDY_PROTOCOL_ERROR;
« no previous file with comments | « no previous file | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698