Commit Graph

491 Commits

Author SHA1 Message Date
Daniel Fuchs
9ad38cbeaf 8307626: java/net/httpclient/FlowAdapter* tests should close the HttpClient instances
Reviewed-by: aefimov, jpai
2023-05-11 16:31:04 +00:00
Conor Cleary
ad90fb6da3 8293786: HttpClient will not send more than 64 kb of data from the 2nd request in http2
Reviewed-by: dfuchs, djelinski
2023-05-08 14:49:43 +00:00
Darragh Clarke
4b02956d42 8054022: HttpURLConnection timeouts with Expect: 100-Continue and no chunking
Reviewed-by: djelinski, dfuchs
2023-05-08 14:33:44 +00:00
Daniel Fuchs
41d58533ac 8306940: test/jdk/java/net/httpclient/XxxxInURI.java should call HttpClient::close
Reviewed-by: jpai, djelinski
2023-04-27 08:25:40 +00:00
Daniel Fuchs
98e8616a0c 8301169: java/net/httpclient/ThrowingSubscribersAsInputStream.java,ThrowingSubscribersAsInputStreamAsync.java, and other httpclient tests failing on windows: Unable to establish loopback connection
Reviewed-by: aefimov, djelinski
2023-04-25 15:48:12 +00:00
Michael McMahon
314db55f6d 8304818: Prune HttpURLConnection cache when corresponding Authenticator is garbage collected
Reviewed-by: dfuchs, djelinski
2023-04-24 17:25:32 +00:00
Daniel Fuchs
90b4006bce 8305847: Improve diagnosability and resilience of HttpClient::close tests
Reviewed-by: jpai, djelinski
2023-04-13 15:27:45 +00:00
Jaikiran Pai
646b666a26 8305900: Use loopback IP addresses in security policy files of httpclient tests
Reviewed-by: dfuchs
2023-04-13 09:41:01 +00:00
Alan Bateman
2586f36120 8304919: Implementation of Virtual Threads
Reviewed-by: lmesnik, cjplummer, psandoz, mchung, sspitsyn, jpai
2023-04-11 05:49:54 +00:00
Daniel Fuchs
6580c4e631 8267140: Support closing the HttpClient by making it auto-closable
Reviewed-by: jpai
2023-04-06 10:05:20 +00:00
Daniel Fuchs
2f36eb0121 8305323: Update java/net/httpclient/ContentLengthHeaderTest.java to use new HttpTestServer factory methods
Reviewed-by: jpai
2023-03-31 13:48:20 +00:00
Daniel Jeliński
2d607c9cd1 8262294: java/net/httpclient/ProxyAuthDisabledSchemes.java fails with HTTP/1.1 parser received no bytes
Reviewed-by: dfuchs, jpai
2023-03-30 05:15:19 +00:00
Daniel Fuchs
e56bcb04b1 8305095: Update java/net/httpclient/CustomRequestPublisher.java to use new HttpTestServer factory methods
Reviewed-by: jpai
2023-03-29 09:46:15 +00:00
Daniel Fuchs
50a995f03a 8304927: Update java/net/httpclient/BasicAuthTest.java to check basic auth over HTTP/2
Reviewed-by: jpai
2023-03-28 18:58:29 +00:00
Daniel Jeliński
eda0065107 8304286: java/net/SocketOption/OptionsTest.java failing after JDK-8302659
Reviewed-by: dfuchs
2023-03-22 08:42:39 +00:00
Daniel Jeliński
1ae69e3e91 8304287: Problemlist java/net/SocketOption/OptionsTest.java
Reviewed-by: dfuchs
2023-03-15 20:51:22 +00:00
Rich DiCroce
35a2969057 8302659: Modernize Windows native code for NetworkInterface
Reviewed-by: ihse, djelinski, alanb, michaelm
2023-03-15 17:06:32 +00:00
Daniel Fuchs
466ffebcae 8303965: java.net.http.HttpClient should reset the stream if response headers contain malformed header fields
Reviewed-by: jpai
2023-03-13 14:24:56 +00:00
Daniel Fuchs
56512cfe1f 8303682: Simplify HttpClient DebugLogger
Reviewed-by: jpai
2023-03-08 13:52:52 +00:00
Daniel Fuchs
cbdc7a6f88 8303481: CancelRequestTest assertTrue failing with AssertionError due to java.util.concurrent.CompletionException: java.io.EOFException: EOF reached while reading
Reviewed-by: jpai, djelinski
2023-03-03 13:18:23 +00:00
Jaikiran Pai
72de24e59a 8303457: Introduce convenience test library APIs for creating test servers for tests in test/jdk/java/net/httpclient
Reviewed-by: dfuchs
2023-03-02 11:24:06 +00:00
Darragh Clarke
5feb13b55d 8301701: java/net/DatagramSocket/DatagramSocketMulticasting.java should be hardened
Reviewed-by: dfuchs
2023-02-28 06:51:37 +00:00
Daniel Fuchs
575484806c 8299338: AssertionError in ResponseSubscribers$HttpResponseInputStream::onSubscribe
Reviewed-by: jpai
2023-02-22 12:43:55 +00:00
Daniel Fuchs
edf238b65e 8302635: Race condition in HttpBodySubscriberWrapper when cancelling request
Reviewed-by: jpai
2023-02-17 14:43:58 +00:00
Conor Cleary
92474f13f0 8301243: java/net/httpclient/http2/IdleConnectionTimeoutTest.java intermittent failure
Reviewed-by: dfuchs
2023-02-14 09:41:36 +00:00
sunguoyun
df93880efd 8301942: java/net/httpclient/DigestEchoClientSSL.java fail with -Xcomp
Reviewed-by: dfuchs
2023-02-13 12:50:28 +00:00
Conor Cleary
f4b140b420 8296410: HttpClient throws java.io.IOException: no statuscode in response for HTTP2
Reviewed-by: dfuchs, jpai
2023-02-13 08:34:45 +00:00
Alan Bateman
ecf21a9a24 8301767: Convert virtual thread tests to JUnit
Reviewed-by: cstein, lancea, jpai
2023-02-08 14:56:28 +00:00
Daniel Fuchs
8b70256d30 8301787: java/net/httpclient/SpecialHeadersTest failing after JDK-8301306
Reviewed-by: dcubed, rriggs
2023-02-03 16:01:47 +00:00
sunguoyun
6f9106e0d0 8301306: java/net/httpclient/* fail with -Xcomp
Reviewed-by: dfuchs, alanb
2023-02-03 11:56:06 +00:00
Daniel Fuchs
a74ebd048a 8299325: java/net/httpclient/CancelRequestTest.java fails "test CancelRequestTest.testGetSendAsync("https://localhost:46509/https1/x/same/interrupt", true, true)"
Reviewed-by: jpai
2023-01-30 14:41:59 +00:00
Daniel Fuchs
041a12e655 8301255: Http2Connection may send too many GOAWAY frames
Reviewed-by: jpai
2023-01-30 14:36:36 +00:00
Jaikiran Pai
8a47429dc0 8295944: Move the Http2TestServer and related classes into a package of its own
Reviewed-by: dfuchs
2023-01-25 13:38:02 +00:00
Darragh Clarke
e803855708 8299863: URLFromURITest.java should import org.junit.jupiter.api.Test
Reviewed-by: dfuchs, cstein
2023-01-20 17:00:53 +00:00
Ralf Schmelter
92d8326e40 8299827: Add resolved IP address in connection exception for sockets
Reviewed-by: alanb, vtewari, jpai, dfuchs
2023-01-20 16:36:45 +00:00
Daniel Fuchs
49d60fee49 8300172: java/net/httpclient/MappingResponseSubscriber.java failed with java.net.ConnectException
Reviewed-by: jpai
2023-01-20 09:23:37 +00:00
Alan Bateman
4b573343a6 8278326: Socket close is not thread safe and other cleanup
Reviewed-by: jpai
2023-01-12 09:38:31 +00:00
Chris Hegarty
a7d6de71bb 8299015: Ensure that HttpResponse.BodySubscribers.ofFile writes all bytes
Co-authored-by: Daniel Jeliński <djelinski@openjdk.org>
Reviewed-by: dfuchs, djelinski, jpai
2022-12-21 12:19:06 +00:00
Daniel Fuchs
e5edb10dc5 8299018: java/net/httpclient/HttpsTunnelAuthTest.java fails with java.io.IOException: HTTP/1.1 header parser received no bytes
Reviewed-by: djelinski, jpai
2022-12-20 11:06:36 +00:00
Daniel Fuchs
5df00d34fe 8298931: java/net/httpclient/CancelStreamedBodyTest.java fails with AssertionError due to Pending TCP connections: 1
Reviewed-by: jpai
2022-12-20 11:05:38 +00:00
Michal Karm Babacek
909d0cb4d9 8298588: WebSockets: HandshakeUrlEncodingTest unnecessarily depends on a response body
Reviewed-by: dfuchs
2022-12-16 12:28:39 +00:00
Daniel Fuchs
0dce5b811d 8296610: java/net/HttpURLConnection/SetAuthenticator/HTTPSetAuthenticatorTest.java failed with "BindException: Address already in use: connect"
Reviewed-by: michaelm
2022-12-14 16:39:32 +00:00
Daniel Fuchs
05d67f69e3 8298340: java/net/httpclient/CancelRequestTest.java fails with AssertionError: Found some subscribers for testPostInterrupt
Reviewed-by: jpai
2022-12-09 15:23:22 +00:00
Darragh Clarke
3aa4070d4c 8294047: HttpResponseInputStream swallows interrupts
Reviewed-by: dfuchs, vtewari, jpai
2022-12-08 01:39:07 +00:00
Daniel Fuchs
b0e54328c5 8297687: new URI(S,S,S,S) throws exception with incorrect index position reported in the error message
Reviewed-by: jpai
2022-12-06 12:46:01 +00:00
Daniel Fuchs
6d0fbb2c49 8297645: Drop the test/jdk/java/net/httpclient/reactivestreams-tck-tests/TckDriver.java test
Reviewed-by: alanb, jpai, michaelm
2022-12-02 10:44:29 +00:00
Joe Darcy
770ff5a812 8297215: Update libs tests to use @enablePreview
Reviewed-by: alanb, sspitsyn
2022-12-01 20:38:16 +00:00
Jaikiran Pai
9ced2ea0ab 8297311: Improve exception message thrown by java.net.HostPortrange::toLowerCase(String s)
Reviewed-by: dfuchs, michaelm, rriggs
2022-11-30 01:11:24 +00:00
Jaikiran Pai
0ce182723b 8294321: Fix typos in files under test/jdk/java, test/jdk/jdk, test/jdk/jni
Co-authored-by: Michael Ernst <mernst@openjdk.org>
Reviewed-by: alanb, lancea, dfuchs
2022-11-30 00:37:31 +00:00
Daniel Fuchs
d83a07b72c 8297200: java/net/httpclient/SpecialHeadersTest.java failed once in AssertionError due to selector thread remaining alive
Reviewed-by: jpai
2022-11-29 12:42:37 +00:00
Jaikiran Pai
2f47f83add 8297569: URLPermission constructor throws IllegalArgumentException: Invalid characters in hostname after JDK-8294378
Reviewed-by: dfuchs
2022-11-25 01:23:53 +00:00
KIRIYAMA Takuya
ab1f9ffa78 8051627: Invariants about java.net.URI resolve and relativize are wrong
Reviewed-by: dfuchs
2022-11-24 16:16:45 +00:00
Daniel Fuchs
134acab5a4 8297149: REDO JDK-8296889: Race condition when cancelling a request
8297075: java/net/httpclient/CancelStreamedBodyTest.java fails with "java.lang.AssertionError: WARNING: tracker for HttpClientImpl(1) has outstanding operations"

Reviewed-by: jpai
2022-11-17 15:08:04 +00:00
Conor Cleary
b9db16ab09 8288717: Add a means to close idle connections in HTTP/2 connection pool
Reviewed-by: dfuchs, michaelm
2022-11-17 08:38:25 +00:00
Daniel Fuchs
8b1ff9e37e 8297132: BACKOUT JDK-8296889: Race condition when cancelling a request
Reviewed-by: djelinski, alanb
2022-11-16 13:13:54 +00:00
Daniel Fuchs
7357a1a379 8296889: Race condition when cancelling a request
Reviewed-by: jpai
2022-11-15 18:36:45 +00:00
Ryan Wallace
ff2c987669 8294378: URLPermission constructor exception when using tr locale
Reviewed-by: dfuchs, jpai, aefimov
2022-11-12 01:37:46 +00:00
Daniel Fuchs
4338f527aa 8294241: Deprecate URL public constructors
Reviewed-by: joehw, prr, alanb, aefimov, michaelm
2022-11-03 17:18:14 +00:00
Daniel Fuchs
e15d2419ab 8295991: java/net/httpclient/CancelRequestTest.java fails intermittently
Reviewed-by: jpai
2022-11-02 15:31:50 +00:00
Daniel Jeliński
2f3f3b6185 8295792: Clean up old async close code
Reviewed-by: alanb
2022-10-24 15:25:48 +00:00
Daniel Jeliński
65c84e0cf8 8295777: java/net/httpclient/ConnectExceptionTest.java should not rely on system resolver
Reviewed-by: dfuchs, jpai
2022-10-24 06:08:40 +00:00
Daniel Jeliński
329b49a938 8266900: java/net/httpclient/ShortResponseBody.java fails on windows with java.io.IOException: Unable to establish loopback connection
Reviewed-by: dfuchs
2022-10-24 06:07:10 +00:00
Magnus Ihse Bursie
d5a1521fde 8295470: Update openjdk.java.net => openjdk.org URLs in test code
Reviewed-by: michaelm, prr, darcy
2022-10-20 10:33:18 +00:00
Daniel Fuchs
dcd46501e6 8294916: Cancelling a request must eventually cause its response body subscriber to be unregistered
Reviewed-by: michaelm, jpai
2022-10-20 08:48:40 +00:00
Daniel Jeliński
2cee77444f 8289366: Improve HTTP/2 client usage
Reviewed-by: dfuchs, rhalade
2022-10-18 22:41:16 +00:00
Daniel Fuchs
bd41428a56 8293590: Some syntax checks performed by URL.openConnection() could be performed earlier, at URL construction
Reviewed-by: jpai, michaelm
2022-10-18 14:30:51 +00:00
Darragh Clarke
b30d922009 8292876: Do not include the deprecated userinfo component of the URI in HTTP/2 headers
Reviewed-by: aefimov, dfuchs, jpai
2022-10-14 01:37:29 +00:00
KIRIYAMA Takuya
4435d56d3f 8282395: URL.openConnection can throw IOOBE
Reviewed-by: dfuchs
2022-10-11 09:22:33 +00:00
Daniel Jeliński
fe70487d0b 8294958: java/net/httpclient/ConnectTimeout tests are slow
Reviewed-by: dfuchs, aefimov
2022-10-11 08:50:01 +00:00
Jaikiran Pai
fd594302f7 8294610: java/net/vthread/HttpALot.java is slow on Linux
Reviewed-by: dfuchs, alanb
2022-10-01 09:17:53 +00:00
Alan Bateman
37f83b9b8e 8294375: test/jdk/java/nio/channels/vthread/BlockingChannelOps.java is slow
Reviewed-by: jpai
2022-09-28 13:10:43 +00:00
Jaikiran Pai
800e68d690 8292044: HttpClient doesn't handle 102 or 103 properly
Reviewed-by: dfuchs, chegar, michaelm
2022-09-22 09:18:22 +00:00
Jaikiran Pai
8bd79d3efd 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages
Reviewed-by: dfuchs, michaelm
2022-09-13 05:08:05 +00:00
Daniel Fuchs
256b52387b 8292381: java/net/httpclient/SpecialHeadersTest.java fails with "ERROR: Shutting down connection: HTTP/2 client stopped"
Reviewed-by: jpai
2022-08-22 14:14:41 +00:00
KIRIYAMA Takuya
79597f1ea6 8272702: Resolving URI relative path with no / may lead to incorrect toString
Reviewed-by: dfuchs, michaelm
2022-08-22 09:22:59 +00:00
Aleksey Shipilev
fcc119531a 8290531: Loom: Parallelize a few tests more deeply
Reviewed-by: rpressler, jpai, alanb
2022-08-01 14:20:27 +00:00
Daniel Fuchs
3b9059a147 8290083: ResponseBodyBeforeError: AssertionError or SSLException: Unsupported or unrecognized SSL message
Reviewed-by: jpai
2022-07-12 09:59:29 +00:00
Michael McMahon
77c3bbf105 8289617: Remove test/jdk/java/net/ServerSocket/ThreadStop.java
Reviewed-by: alanb, jpai
2022-07-05 09:15:41 +00:00
Ryan Ernst
9ccae7078e 8287593: ShortResponseBody could be made more resilient to rogue connections
Reviewed-by: chegar, dfuchs
2022-07-04 16:09:40 +00:00
Bill Huang
d8444aa45e 8286610: Add additional diagnostic output to java/net/DatagramSocket/InterruptibleDatagramSocket.java
Reviewed-by: msheppar, dfuchs, jpai
2022-07-03 02:37:30 +00:00
Daniel Fuchs
f3f078846f 8288746: HttpClient resources could be reclaimed more eagerly
Reviewed-by: jpai, michaelm
2022-06-27 15:11:35 +00:00
Conor Cleary
13d4ddc35b 8286962: java/net/httpclient/ServerCloseTest.java failed once with ConnectException
Reviewed-by: dfuchs, jpai
2022-06-15 15:41:18 +00:00
Conor Cleary
267144311c 8286171: HttpClient/2 : Expect:100-Continue blocks indefinitely when response is not 100
Reviewed-by: dfuchs, jpai
2022-06-09 15:03:52 +00:00
Alan Bateman
6ff2d89ea1 8287496: Alternative virtual thread implementation that maps to OS thread
Reviewed-by: rehn, mchung
2022-06-02 09:02:37 +00:00
Alexey Ivanov
e0d361cea9 8284191: Replace usages of 'a the' in hotspot and java.base
Reviewed-by: lancea, wetmore, naoto, iris, kevinw, xuelei
2022-05-24 11:25:13 +00:00
Daniel Jeliński
d24c84e768 8286873: Improve websocket test execution time
Reviewed-by: dfuchs, prappo
2022-05-19 13:22:14 +00:00
Conor Cleary
6a7709320d 8283544: HttpClient GET method adds Content-Length: 0 header
Reviewed-by: dfuchs, jpai
2022-05-17 10:01:43 +00:00
Jaikiran Pai
f4258a50e0 8209137: Add ability to bind to specific local address to HTTP client
Reviewed-by: dfuchs, michaelm
2022-05-16 11:45:32 +00:00
Conor Cleary
65da38d844 8284585: PushPromiseContinuation test fails intermittently in timeout
Reviewed-by: dfuchs
2022-05-16 11:14:34 +00:00
Daniel Fuchs
04df8b7437 8286194: ExecutorShutdown test fails intermittently
Reviewed-by: jpai, michaelm
2022-05-13 11:51:42 +00:00
Daniel Fuchs
f143386109 8286293: Tests ShortResponseBody and ShortResponseBodyWithRetry should use less resources
Reviewed-by: michaelm
2022-05-09 13:01:16 +00:00
Alan Bateman
9583e3657e 8284161: Implementation of Virtual Threads (Preview)
Co-authored-by: Ron Pressler <rpressler@openjdk.org>
Co-authored-by: Alan Bateman <alanb@openjdk.org>
Co-authored-by: Erik Österlund <eosterlund@openjdk.org>
Co-authored-by: Andrew Haley <aph@openjdk.org>
Co-authored-by: Rickard Bäckman <rbackman@openjdk.org>
Co-authored-by: Markus Grönlund <mgronlun@openjdk.org>
Co-authored-by: Leonid Mesnik <lmesnik@openjdk.org>
Co-authored-by: Serguei Spitsyn <sspitsyn@openjdk.org>
Co-authored-by: Chris Plummer <cjplummer@openjdk.org>
Co-authored-by: Coleen Phillimore <coleenp@openjdk.org>
Co-authored-by: Robbin Ehn <rehn@openjdk.org>
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Co-authored-by: Thomas Schatzl <tschatzl@openjdk.org>
Co-authored-by: Sergey Kuksenko <skuksenko@openjdk.org>
Reviewed-by: lancea, eosterlund, rehn, sspitsyn, stefank, tschatzl, dfuchs, lmesnik, dcubed, kevinw, amenkov, dlong, mchung, psandoz, bpb, coleenp, smarks, egahlin, mseledtsov, coffeys, darcy
2022-05-07 08:06:16 +00:00
Michael McMahon
67755edd6f 8284890: Support for Do not fragment IP socket options
Reviewed-by: erikj, ihse, dfuchs
2022-04-26 13:49:58 +00:00
Daniel Fuchs
5291ec8d56 8277969: HttpClient SelectorManager shuts down when custom Executor rejects a task
Reviewed-by: jpai, michaelm
2022-04-20 13:09:45 +00:00
Daniel Fuchs
1e22c70ff2 8284892: java/net/httpclient/http2/TLSConnection.java fails intermittently
Reviewed-by: djelinski, jpai, michaelm
2022-04-15 09:07:09 +00:00
Mahendra Chhipa
ec73c61d8f 8284353: Update java/net and sun/net/www tests to eliminate dependency on sun.net.www.MessageHeader
Reviewed-by: dfuchs
2022-04-07 10:19:12 +00:00
Conor Cleary
4d2cd26ab5 8263031: HttpClient throws Exception if it receives a Push Promise that is too large
Reviewed-by: dfuchs
2022-04-07 08:42:38 +00:00
Daniel Jeliński
4ffe96a857 8282506: Clean up remaining references to TwoStacksPlain*SocketImpl
Reviewed-by: dfuchs
2022-04-06 06:43:18 +00:00
Luis Pinto
63fec5da27 8283525: http://tools.ietf.org/html/* URLs return 404
Reviewed-by: coffeys
2022-04-01 13:26:20 +00:00
Michael McMahon
7f2a3ca289 8281561: Disable http DIGEST mechanism with MD5 and SHA-1 by default
Reviewed-by: weijun, dfuchs
2022-03-28 13:51:55 +00:00