Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions test/jdk/java/net/httpclient/http3/H3SimpleGet.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* @bug 8087112
* @requires os.family != "windows" | ( os.name != "Windows 10" & os.name != "Windows Server 2016"
* & os.name != "Windows Server 2019" )
* @requires os.family != "aix"
* @library /test/lib /test/jdk/java/net/httpclient/lib
* @build jdk.test.lib.net.SimpleSSLContext jdk.httpclient.test.lib.common.TestUtil
* jdk.httpclient.test.lib.http2.Http2TestServer
Expand All @@ -45,6 +46,29 @@
* H3SimpleGet
*/

/*
* @test id=with-continuations-aix
* @bug 8087112
* @requires os.family == "aix"
* @library /test/lib /test/jdk/java/net/httpclient/lib
* @build jdk.test.lib.net.SimpleSSLContext jdk.httpclient.test.lib.common.TestUtil
* jdk.httpclient.test.lib.http2.Http2TestServer
* @run testng/othervm/timeout=480 -XX:+HeapDumpOnOutOfMemoryError -XX:+CrashOnOutOfMemoryError
* H3SimpleGet
* @run testng/othervm/timeout=480 -XX:+HeapDumpOnOutOfMemoryError -XX:+CrashOnOutOfMemoryError
* -Djdk.httpclient.retryOnStreamlimit=20
* -Djdk.httpclient.redirects.retrylimit=21
* -Dsimpleget.repeat=1 -Dsimpleget.chunks=1 -Dsimpleget.requests=1000
* H3SimpleGet
* @run testng/othervm/timeout=480 -XX:+HeapDumpOnOutOfMemoryError -XX:+CrashOnOutOfMemoryError
* -Dsimpleget.requests=150
* -Dsimpleget.chunks=16384
* -Djdk.httpclient.retryOnStreamlimit=5
* -Djdk.httpclient.redirects.retrylimit=6
* -Djdk.httpclient.quic.defaultMTU=8192
* H3SimpleGet
*/

/*
* @test id=without-continuation
* @bug 8087112
Expand Down Expand Up @@ -75,6 +99,7 @@
/*
* @test id=useNioSelector
* @bug 8087112
* @requires os.family != "aix"
* @library /test/lib /test/jdk/java/net/httpclient/lib
* @build jdk.test.lib.net.SimpleSSLContext jdk.httpclient.test.lib.common.TestUtil
* jdk.httpclient.test.lib.http2.Http2TestServer
Expand All @@ -97,6 +122,32 @@
* H3SimpleGet
*/

/*
* @test id=useNioSelector-aix
* @bug 8087112
* @requires os.family == "aix"
* @library /test/lib /test/jdk/java/net/httpclient/lib
* @build jdk.test.lib.net.SimpleSSLContext jdk.httpclient.test.lib.common.TestUtil
* jdk.httpclient.test.lib.http2.Http2TestServer
* @run testng/othervm/timeout=480 -XX:+HeapDumpOnOutOfMemoryError -XX:+CrashOnOutOfMemoryError
* -Djdk.internal.httpclient.quic.useNioSelector=true
* H3SimpleGet
* @run testng/othervm/timeout=480 -XX:+HeapDumpOnOutOfMemoryError -XX:+CrashOnOutOfMemoryError
* -Djdk.internal.httpclient.quic.useNioSelector=true
* -Djdk.httpclient.retryOnStreamlimit=20
* -Djdk.httpclient.redirects.retrylimit=21
* -Dsimpleget.repeat=1 -Dsimpleget.chunks=1 -Dsimpleget.requests=1000
* H3SimpleGet
* @run testng/othervm/timeout=480 -XX:+HeapDumpOnOutOfMemoryError -XX:+CrashOnOutOfMemoryError
* -Djdk.internal.httpclient.quic.useNioSelector=true
* -Dsimpleget.requests=150
* -Dsimpleget.chunks=16384
* -Djdk.httpclient.retryOnStreamlimit=5
* -Djdk.httpclient.redirects.retrylimit=6
* -Djdk.httpclient.quic.defaultMTU=8192
* H3SimpleGet
*/

// Interesting additional settings for debugging and manual testing:
// -----------------------------------------------------------------
// -Djdk.httpclient.HttpClient.log=requests,errors,quic:retransmit:control,http3
Expand Down