maskit commented on code in PR #10673:
URL: https://github.com/apache/trafficserver/pull/10673#discussion_r1372030806
##########
src/proxy/http2/Http2ConnectionState.cc:
##########
@@ -852,9 +852,14 @@ Http2ConnectionState::rcv_goaway_frame(const Http2Frame
&frame)
while (nbytes < frame.header().length) {
unsigned read_bytes = read_rcv_buffer(buf, sizeof(buf), nbytes, frame);
- if (!http2_parse_goaway(make_iovec(buf, read_bytes), goaway)) {
- return Http2Error(Http2ErrorClass::HTTP2_ERROR_CLASS_CONNECTION,
Http2ErrorCode::HTTP2_ERROR_PROTOCOL_ERROR,
- "goaway failed parse");
+ if (nbytes == HTTP2_GOAWAY_LEN) {
Review Comment:
Can't we simply remove the while loop instead? I think the while loop is
unnecessary for this frame (it makes sense for SETTINGS frame).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]