8294610: java/net/vthread/HttpALot.java is slow on Linux

Reviewed-by: dfuchs, alanb
This commit is contained in:
Jaikiran Pai 2022-10-01 09:17:53 +00:00
parent c7ab1caafb
commit fd594302f7

View File

@ -23,13 +23,18 @@
/**
* @test
* @bug 8284161
* @summary Stress test the HTTP protocol handler and HTTP server
* @requires vm.debug != true
* @modules jdk.httpserver
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} HttpALot.java
* @comment This test runs with -Dsun.net.httpserver.nodelay=true to enable TCP_NODELAY on the
* sockets "accept()"ed by the HttpServer. This is to avoid occasional 40ms delays
* receiving responses from the server on Linux.
* @run main/othervm/timeout=600
* --enable-preview
* -Dsun.net.httpserver.nodelay=true
* -Dsun.net.client.defaultConnectTimeout=5000
* -Dsun.net.client.defaultReadTimeout=5000
* HttpALot