Skip to content

Commit

Permalink
Disable Http2RSTFloodProtectionTest on Windows
Browse files Browse the repository at this point in the history
(cherry picked from commit b82f9ee)
  • Loading branch information
gsmet committed Nov 15, 2023
1 parent eeba2c3 commit 84fec50
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledOnOs;
import org.junit.jupiter.api.condition.OS;
import org.junit.jupiter.api.extension.RegisterExtension;

import io.quarkus.test.QuarkusUnitTest;
Expand All @@ -29,6 +31,7 @@
/**
* Reproduce CVE-2023-44487.
*/
@DisabledOnOs(OS.WINDOWS)
public class Http2RSTFloodProtectionTest {

@TestHTTPResource(value = "/ping", ssl = true)
Expand Down Expand Up @@ -81,7 +84,7 @@ void run(HttpClient client, int port, boolean plain) throws InterruptedException
.compose(HttpClientRequest::send);
}

for (int i = 0; i < 250; i++) { // must be higher thant the NEtty limit (200 / 30s)
for (int i = 0; i < 250; i++) { // must be higher than the Netty limit (200 / 30s)
client.request(GET, port, "localhost", "/ping")
.onSuccess(req -> req.end().onComplete(v -> req.reset()));
}
Expand Down

0 comments on commit 84fec50

Please sign in to comment.