Skip to content

Commit d24e1f7

Browse files
authored
Merge pull request #1529 from fl4via/UNDERTOW-2331
[UNDERTOW-2331] At RapidResetDDoSUnitTestCase, accept a smaller numb…
2 parents c139708 + 3a9de42 commit d24e1f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/test/java/io/undertow/protocols/http2/RapidResetDDoSUnitTestCase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public void assertDoSRstFramesHandled(int totalNumberOfRequests, int rstStreamLi
243243

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

0 commit comments

Comments
 (0)