From fd594302f79b934c9eca713d84313b73f4899aa3 Mon Sep 17 00:00:00 2001 From: Jaikiran Pai Date: Sat, 1 Oct 2022 09:17:53 +0000 Subject: [PATCH] 8294610: java/net/vthread/HttpALot.java is slow on Linux Reviewed-by: dfuchs, alanb --- test/jdk/java/net/vthread/HttpALot.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/jdk/java/net/vthread/HttpALot.java b/test/jdk/java/net/vthread/HttpALot.java index abeede81405..c32d985c4e5 100644 --- a/test/jdk/java/net/vthread/HttpALot.java +++ b/test/jdk/java/net/vthread/HttpALot.java @@ -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