163 Commits

Author SHA1 Message Date
Jaikiran Pai
486c7844f9 8312433: HttpClient request fails due to connection being considered idle and closed
Reviewed-by: djelinski
2023-07-27 12:14:14 +00:00
Jaikiran Pai
91fe032327 8312818: Incorrect format specifier in a HttpClient log message
Reviewed-by: djelinski
2023-07-25 11:00:33 +00:00
Michael McMahon
4ae3d8f2cd 8302475: Enhance HTTP client file downloading
Reviewed-by: dfuchs, rhalade
2023-07-18 21:17:07 +00:00
Daniel Fuchs
99d2a9afa9 8310330: HttpClient: debugging interestOps/readyOps could cause exceptions and smaller cleanup
Reviewed-by: djelinski
2023-06-20 15:51:43 +00:00
Daniel Fuchs
f8f8bfbea1 8309939: HttpClient should not use Instant.now() as Instant source for deadlines
Reviewed-by: djelinski
2023-06-19 13:26:26 +00:00
Jaikiran Pai
ba837b4bfa 8309910: Introduce jdk.internal.net.http.HttpConnection.getSNIServerNames() method
Reviewed-by: dfuchs
2023-06-14 01:37:45 +00:00
Jaikiran Pai
3ccb3c0e09 8305906: HttpClient may use incorrect key when finding pooled HTTP/2 connection for IPv6 address
Reviewed-by: djelinski, dfuchs
2023-06-07 09:44:14 +00:00
Daniel Fuchs
931913fbb2 8309200: java/net/httpclient/ExecutorShutdown fails intermittently, if connection closed during upgrade
Reviewed-by: jpai, djelinski
2023-06-02 14:34:54 +00:00
Daniel Fuchs
4aea7dab15 8309120: java/net/httpclient/AsyncShutdownNow.java fails intermittently
Reviewed-by: jpai
2023-05-31 10:49:20 +00:00
Daniel Fuchs
04b0e785f6 8307648: java/net/httpclient/ExpectContinueTest.java timed out
Reviewed-by: djelinski
2023-05-30 16:32:11 +00:00
Daniel Fuchs
736b90d54b 8308310: HttpClient: Avoid logging or locking from within synchronized blocks
Reviewed-by: jpai
2023-05-24 14:23:24 +00:00
Daniel Fuchs
9e196b3631 8308565: HttpClient: Sanitize logging while stopping
Reviewed-by: jpai
2023-05-23 12:07:23 +00:00
Daniel Fuchs
72294c5402 8308024: HttpClient (HTTP/1.1) sends an extraneous empty chunk if the BodyPublisher supplies an empty buffer
Reviewed-by: djelinski, michaelm
2023-05-16 09:13:17 +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
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 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
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
Darragh Clarke
306134dcf9 8300792: Refactor examples in java.net.http to use @snippet
Reviewed-by: dfuchs, jpai
2023-02-27 09:18:56 +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
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
Daniel Fuchs
041a12e655 8301255: Http2Connection may send too many GOAWAY frames
Reviewed-by: jpai
2023-01-30 14:36:36 +00:00
Daniel Fuchs
c8ad600064 8301004: httpclient: Add more debug to HttpResponseInputStream
Reviewed-by: jpai
2023-01-25 13:33:22 +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
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
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
Daniel Fuchs
5d2772a43e 8297424: java/net/httpclient/AsyncExecutorShutdown.java fails in AssertionError due to misplaced assert
Reviewed-by: jpai
2022-11-29 12:36:20 +00:00
Conor Cleary
42b60ed22c 8297030: Reduce Default Keep-Alive Timeout Value for httpclient
Reviewed-by: dfuchs, michaelm, jpai
2022-11-29 11:42:51 +00:00
Michael McMahon
48017b1d9c 8296804: Document HttpClient configuration properties in java.net.http module-info
Reviewed-by: dfuchs, jpai
2022-11-29 11:11:10 +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
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
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
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
Andrey Turbanov
dee5121bd4 8289385: Cleanup redundant synchronization in Http2ClientImpl
Reviewed-by: jpai, dfuchs
2022-07-02 15:24:23 +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
Andrey Turbanov
3475e12fa6 8288330: Avoid redundant ConcurrentHashMap.get call in Http2ClientImpl.deleteConnection
Reviewed-by: jpai, dfuchs
2022-06-15 18:12:29 +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
XenoAmess
e01cd7c3ed 8284780: Need methods to create pre-sized HashSet and LinkedHashSet
Reviewed-by: naoto, bpb, dfuchs, ascarpino
2022-06-09 01:50:54 +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
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