Skip to content

Commit cc58920

Browse files
authored
Merge pull request #31207 from isaacrivriv/fix-rapidreset-test-netty
Updated rapid reset test to include Netty specific data
2 parents 940689f + 6e530f5 commit cc58920

File tree

1 file changed

+8
-1
lines changed
  • dev/com.ibm.ws.transport.http2_fat/test-applications/H2FATDriver.war/src/http2/test/driver/war/servlets

1 file changed

+8
-1
lines changed

dev/com.ibm.ws.transport.http2_fat/test-applications/H2FATDriver.war/src/http2/test/driver/war/servlets/H2FATDriverServlet.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -5207,7 +5207,14 @@ public void testRapidReset(HttpServletRequest request,
52075207
CountDownLatch blockUntilConnectionIsDone = new CountDownLatch(1);
52085208
Http2Client h2Client = getDefaultH2Client(request, response, blockUntilConnectionIsDone);
52095209

5210-
FrameGoAway errorFrame = new FrameGoAway(0, "too many reset frames received".getBytes(), ENHANCE_YOUR_CALM_ERROR, 1, false);
5210+
byte[] cfhwDebugData = "too many reset frames received".getBytes();
5211+
byte[] nettyDebugData = "Maximum number of RST frames reached".getBytes();
5212+
FrameGoAway errorFrame;
5213+
5214+
if (USING_NETTY)
5215+
errorFrame = new FrameGoAway(0, nettyDebugData, ENHANCE_YOUR_CALM_ERROR, 2147483647, false);
5216+
else
5217+
errorFrame = new FrameGoAway(0, cfhwDebugData, ENHANCE_YOUR_CALM_ERROR, 1, false);
52115218
h2Client.addExpectedFrame(errorFrame);
52125219

52135220
setupDefaultUpgradedConnection(h2Client, HEADERS_ONLY_URI);

0 commit comments

Comments
 (0)