Actually set SPDY_CONTROL_PAYLOAD_TOO_LARGE Http2DecoderAdapter::OnFrameSizeError
Looks like SPDY_CONTROL_PAYLOAD_TOO_LARGE was never set.
Bug: chromium:1222490
PiperOrigin-RevId: 381554797
diff --git a/spdy/core/http2_frame_decoder_adapter.cc b/spdy/core/http2_frame_decoder_adapter.cc
index 90fc6b7..be896ef 100644
--- a/spdy/core/http2_frame_decoder_adapter.cc
+++ b/spdy/core/http2_frame_decoder_adapter.cc
@@ -774,12 +774,12 @@
QUICHE_DVLOG(1) << "OnFrameSizeError: " << header;
size_t recv_limit = recv_frame_size_limit_;
if (header.payload_length > recv_limit) {
- SetSpdyErrorAndNotify(SpdyFramerError::SPDY_OVERSIZED_PAYLOAD, "");
- return;
- }
- if (header.type != Http2FrameType::DATA &&
- header.payload_length > recv_limit) {
- SetSpdyErrorAndNotify(SpdyFramerError::SPDY_CONTROL_PAYLOAD_TOO_LARGE, "");
+ if (header.type == Http2FrameType::DATA) {
+ SetSpdyErrorAndNotify(SpdyFramerError::SPDY_OVERSIZED_PAYLOAD, "");
+ } else {
+ SetSpdyErrorAndNotify(SpdyFramerError::SPDY_CONTROL_PAYLOAD_TOO_LARGE,
+ "");
+ }
return;
}
switch (header.type) {