arturobernalg opened a new pull request, #1128: URL: https://github.com/apache/tomcat/pull/1128
RFC 9113, section 6.4 requires that a RST_STREAM frame whose length is other than 4 octets be treated as a connection error of type FRAME_SIZE_ERROR. The previous FrameType declaration set payloadErrorFatal to false for RST, which caused the frame-size check in FrameType.check() to throw a StreamException (stream error) instead of a ConnectionException (connection error). As a result, Tomcat replied with a RST_STREAM rather than a GOAWAY frame. Fix: set payloadErrorFatal to true for FrameType.RST so that an oversized or undersized RST_STREAM payload always triggers a GOAWAY. Update TestHttp2Section_6_4#testResetFrameWrongLength to assert the correct GOAWAY response with error code FRAME_SIZE_ERROR. Claude-Session: https://claude.ai/code/session_01BrsHTcpsEf4zYmA3FfpNuw -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
