Skip to content

Commit

Permalink
[UNDERTOW-2331] At RapidResetDDoSUnitTestCase, accept a smaller numbe…
Browse files Browse the repository at this point in the history
…r of responses than expected as the result of race condition where client notices the connection is closed by server before processing responses and it marks reads as broken

Relates to UNDERTOW-2328
Signed-off-by: Flavia Rainone <frainone@redhat.com>
  • Loading branch information
fl4via committed Oct 23, 2023
1 parent 88553c2 commit 3a9de42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public void assertDoSRstFramesHandled(int totalNumberOfRequests, int rstStreamLi

// server sent go away before processing and responding client frames, sometimes this happens, depends on the order of threads
// being executed
if (responses.isEmpty()) {
if (responses.size() < totalNumberOfRequests) {
Assert.assertTrue(errorExpected);
Assert.assertNotNull(exception);
Assert.assertTrue(exception instanceof ClosedChannelException);
Expand Down

0 comments on commit 3a9de42

Please # to comment.