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
Daniel Fuchs
3b9059a147
8290083: ResponseBodyBeforeError: AssertionError or SSLException: Unsupported or unrecognized SSL message
...
Reviewed-by: jpai
2022-07-12 09:59:29 +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
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
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
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
Luis Pinto
63fec5da27
8283525: http://tools.ietf.org/html/ * URLs return 404
...
Reviewed-by: coffeys
2022-04-01 13:26:20 +00:00
Daniel Fuchs
710653ce18
8254786: java/net/httpclient/CancelRequestTest.java failing intermittently
...
Reviewed-by: jpai, michaelm
2022-03-15 12:59:54 +00:00
Matteo Baccan
ccad39237a
8282657: Code cleanup: removing double semicolons at the end of lines
...
Reviewed-by: lancea, rriggs, ihse, prr, iris, wetmore, darcy, dholmes
2022-03-07 21:33:40 +00:00
Daniel Fuchs
47800bf3da
8280868: LineBodyHandlerTest.java creates and discards too many clients
...
Reviewed-by: michaelm
2022-02-02 17:11:22 +00:00
Michael McMahon
bc31ccc95b
8278312: Update SimpleSSLContext keystore to use SANs for localhost IP addresses
...
Reviewed-by: dfuchs
2021-12-09 17:38:49 +00:00
Daniel Fuchs
37921e3080
8269258: java/net/httpclient/ManyRequestsLegacy.java failed with connection timeout
...
Reviewed-by: michaelm
2021-12-08 15:31:49 +00:00
Tim Prinzing
b8ac0d20ce
8276681: Additional malformed Javadoc inline tags in JDK source
...
Reviewed-by: lancea
2021-12-02 21:22:43 +00:00
Daniel Fuchs
03debf2775
8276774: Cookie stored in CookieHandler not sent if user headers contain cookie
...
Reviewed-by: michaelm
2021-11-19 13:18:12 +00:00
Fairoz Matte
08f65a59a7
8277313: Validate header failed for test/jdk/java/net/httpclient/HeadTest.java
...
Reviewed-by: jdv
2021-11-17 06:13:26 +00:00
Jaikiran Pai
23e5117a55
8276559: (httpclient) Consider adding an HttpRequest.Builder.HEAD method to build a HEAD request.
...
Reviewed-by: cstein, dfuchs
2021-11-17 03:20:40 +00:00
Daniel Fuchs
db9834ff82
8258951: java/net/httpclient/HandshakeFailureTest.java failed with "RuntimeException: Not found expected SSLHandshakeException in java.io.IOException"
...
Reviewed-by: chegar
2021-08-20 09:05:00 +00:00
Thejasvi Voniadka
4e18ec26dd
8269993: [Test]: java/net/httpclient/DigestEchoClientSSL.java contains redundant @run tags
...
Reviewed-by: dfuchs, vtewari
2021-07-08 06:01:31 +00:00
Michael McMahon
2d088fa91d
8268294: Reusing HttpClient in a WebSocket.Listener hangs.
...
Reviewed-by: dfuchs
2021-06-17 07:13:59 +00:00
Daniel Fuchs
8ea0606aba
8268714: [macos-aarch64] 7 java/net/httpclient/websocket tests failed
...
Reviewed-by: chegar, michaelm
2021-06-16 17:24:06 +00:00
Daniel Fuchs
da043e99b8
8268555: Update HttpClient tests that use ITestContext to jtreg 6+1
...
Reviewed-by: chegar
2021-06-11 08:42:14 +00:00
Daniel Fuchs
d4b4caecad
8268023: Improve diagnostic for HandshakeFailureTest
...
Reviewed-by: chegar
2021-06-01 17:55:36 +00:00
Daniel Fuchs
9d8ad2ed62
8267990: Revisit some uses of synchronized
in the HttpClient API
...
Reviewed-by: chegar
2021-06-01 17:10:38 +00:00
Daniel Fuchs
24bf35f862
8265367: [macos-aarch64] 3 java/net/httpclient/websocket tests fail with "IOException: No buffer space available"
...
Reviewed-by: chegar
2021-05-28 14:21:11 +00:00
Daniel Fuchs
0544a732a4
8255227: java/net/httpclient/FlowAdapterPublisherTest.java intermittently failing with TestServer: start exception: java.io.IOException: Invalid preface
...
Reviewed-by: chegar
2021-04-30 17:21:55 +00:00
Daniel Fuchs
01415f33e3
8266250: WebSocketTest and WebSocketProxyTest call assertEquals(List<byte[]>, List<byte[]>)
...
Reviewed-by: prappo
2021-04-29 16:15:06 +00:00
Michael McMahon
e55aa41f57
8263899: HttpClient throws NPE in AuthenticationFilter when parsing www-authenticate head
...
Reviewed-by: dfuchs, chegar
2021-03-24 11:59:19 +00:00
Michael McMahon
bd7a184b98
8263442: Potential bug in jdk.internal.net.http.common.Utils.CONTEXT_RESTRICTED
...
Reviewed-by: dfuchs
2021-03-23 13:25:56 +00:00
Daniel Fuchs
0d2dbd2995
8262027: Improve how HttpConnection detects a closed channel when taking/returning a connection to the pool
...
Reviewed-by: chegar, michaelm
2021-02-24 10:50:35 +00:00
Clive Verghese
63f8fc87cd
8259662: Don't wrap SocketExceptions into SSLExceptions in SSLSocketImpl
...
Reviewed-by: xuelei
2021-02-22 18:36:30 +00:00
Yasumasa Suenaga
e3b548a68b
8257736: InputStream from BodyPublishers.ofInputStream() leaks when IOE happens
...
Reviewed-by: dfuchs, chegar
2021-01-15 01:58:36 +00:00
Roger Riggs
876c7fb5f7
8259493: [test] Use HexFormat instead of adhoc hex utilities in network code and locale SoftKeys
...
Reviewed-by: lancea, naoto
2021-01-08 21:31:37 +00:00
Daniel Fuchs
4a839e95de
8256459: java/net/httpclient/ManyRequests.java and java/net/httpclient/LineBodyHandlerTest.java fail infrequently with java.net.ConnectException: Connection timed out: no further information
...
Reviewed-by: chegar
2020-12-10 10:09:29 +00:00
Daniel Fuchs
fab6158c19
8236413: AbstractConnectTimeout should tolerate both NoRouteToHostException and UnresolvedAddressException
...
Reviewed-by: aefimov, michaelm
2020-12-08 16:36:04 +00:00
Daniel Fuchs
566d77a2ae
8254802: ThrowingPushPromisesAsStringCustom.java fails in "try throwing in GET_BODY"
...
Reviewed-by: michaelm
2020-12-07 09:58:16 +00:00
Sean Mullan
3a4b90f086
8202343: Disable TLS 1.0 and 1.1
...
Reviewed-by: xuelei, dfuchs, coffeys
2020-11-19 14:15:57 +00:00
Patrick Concannon
9fe2d31d6e
8252304: Seed an HttpRequest.Builder from an existing HttpRequest
...
Co-authored-by: Chris Hegarty <chegar@openjdk.org>
Reviewed-by: chegar, dfuchs, michaelm
2020-11-19 09:35:49 +00:00
Daniel Fuchs
1c47244b01
8255244: HttpClient: Response headers contain incorrectly encoded Unicode characters
...
Reviewed-by: chegar, michaelm
2020-11-13 15:10:41 +00:00
Patrick Concannon
5973e91cc3
8253005: Add @throws IOException
in javadoc for HttpEchange.sendResponseHeaders
...
Reviewed-by: dfuchs
2020-11-13 11:31:25 +00:00
Jamil Nimeh
d6cef99050
8245417: Improve certificate chain handling
...
Co-authored-by: Hai-may Chao <hai-may.chao@oracle.com>
Reviewed-by: mullan, jnimeh
2020-10-20 14:58:39 -07:00
Daniel Fuchs
4184959d85
8252374: Add a new factory method to concatenate a sequence of BodyPublisher instances into a single publisher.
...
Reviewed-by: chegar
2020-10-12 12:52:55 +00:00
Daniel Fuchs
80d889189a
8245462: HttpClient send throws InterruptedException when interrupted but does not cancel request
...
Allows an HTTP operation to be cancelled by calling CompletableFuture::cancel(true)
Reviewed-by: michaelm, chegar, alanb
2020-08-28 10:48:17 +01:00
Rahul Yadav
b328bc14a0
8251715: Throw UncheckedIOException in place of InternalError when HttpClient fails due to unavailability of underlying resources required by SSLContext
...
This fix updates jdk.internal.net.http.HttpClientImpl to throw an UncheckedIOException instead of InternalError.
Reviewed-by: chegar, dfuchs
2020-08-18 16:44:42 +01:00
Rahul Yadav
8e687450d6
8248006: Revisit exceptions thrown when creating an HttpClient fails due to unavailability of underlying resources
...
This fix updates jdk.internal.net.http.HttpClientImpl to throw an UncheckedIOException instead of InternalError.
Reviewed-by: chegar, dfuchs
2020-08-10 15:15:10 +01:00
Daniel Fuchs
77c46ea911
8229822: ThrowingPushPromises tests sometimes fail due to EOF
...
SocketTube is fixed to cater for errors caused by pausing/resuming events on an asynchronously closed connection, from within the selector's manager thread. Http2Connection and Stream are fixed to prevent sending a DataFrame on a stream after Reset has been sent.
Reviewed-by: chegar
2020-08-07 16:16:45 +01:00
Daniel Fuchs
45c89daf72
8249786: java/net/httpclient/websocket/PendingPingTextClose.java fails very infrequently
...
TransportImpl is modified to make sure the CLOSED state is recorded before the channel is closed. The tests are modified to enable their retry mechanism on windows, similar to what was done previously for macOS.
Reviewed-by: prappo, chegar
2020-08-07 15:09:19 +01:00
Rahul Yadav
c07ce7eec7
8245245: Websocket can lose the URL encoding of URI query parameters
...
The fix updates jdk.internal.net.http.websocket.OpeningHandshake to avoid double encoding and decoding of URL
Reviewed-by: dfuchs, chegar, prappo
2020-06-29 14:49:03 +01:00
Julia Boes
3943f9d0b7
8246431: java/net/httpclient/PathSubscriber tests fail due to missing FilePermission
...
Add explicit jtreg build configuration and adjust permissions accordingly
Reviewed-by: chegar, dfuchs
2020-06-08 15:27:31 +01:00
Julia Boes
c0a1a4e4fc
8237470: HttpResponse.BodySubscriber::ofFile throws UOE with non-default file systems
...
Rework non-default file system paths of BodySubscriber::ofFile and BodyHandler::ofFile and fix BodyHandler::ofFileDownload to throw consistently for non-default file system paths
Reviewed-by: dfuchs, chegar
2020-05-29 12:59:13 +01:00
Daniel Fuchs
58adc04d69
8244031: HttpClient should have more tests for HEAD requests
...
Http2TestExchangeImpl.java updated to support HEAD responses; ForbiddenHeadTest.java added.
Reviewed-by: chegar, michaelm
2020-05-20 18:57:06 +01:00
Rahul Yadav
178e69a3b9
8244652: Add test for non utf-8 response handling by websocket
...
The test java.net.httpclient.websocket.WSHandshakeExceptionTest.java checks that the websocket client handles invalid utf-8 sent by the websocket server
Reviewed-by: dfuchs
2020-05-15 14:46:17 +01:00
Daniel Fuchs
a2c35a6acb
8244205: HTTP/2 tunnel connections through proxy may be reused regardless of which proxy is selected
...
The key used in the HTTP/2 connection pool is updated to take into account the proxy address in case of tunnel connections
Reviewed-by: chegar
2020-05-06 19:19:38 +01:00
Rahul Yadav
ed24927500
8240666: Websocket client’s OpeningHandshake discards the HTTP response body
...
The fix updates jdk.internal.net.http.websocket. OpeningHandshake.send() method to process the response body from server
Reviewed-by: chegar, dfuchs, prappo
2020-05-06 17:33:32 +01:00
Rahul Yadav
184b433630
8242999: HTTP/2 client may not handle CONTINUATION frames correctly
...
Updated jdk.internal.net.http.Stream.incoming(Http2Frame frame) to handle continuation frame with END_HEADER flag
Reviewed-by: chegar, dfuchs
2020-04-28 10:30:27 +01:00
Daniel Fuchs
94a99ab9e5
8243246: HTTP Client sometimes gets java.io.IOException -> Invalid chunk header byte 32
...
The HTTP/1 chunked body parser is updated to discard chunk extensions
Reviewed-by: chegar, alanb
2020-04-24 16:54:30 +01:00
Daniel Fuchs
da1abd18db
8238270: java.net HTTP/2 client does not decrease stream count when receives 204 response
...
The HTTP/2 Stream is updated to register a trivial data subscriber in case of 204 so that the END_STREAM is correctly processed.
Reviewed-by: chegar
2020-04-20 13:15:45 +01:00
Rahul Yadav
86722cb038
8239594: jdk.tls.client.protocols is not respected
...
8239595: ssl context version is not respected
The java.net.HttpClient is updated to no longer override any default selected protocols in the SSLContext, in the absence of any SSLParameters explicitly supplied to the HttpClient.builder.
Reviewed-by: chegar, dfuchs
2020-04-10 10:05:33 +01:00
Chris Hegarty
9a69bb807b
8242044: Add basic HTTP/1.1 support to the HTTP/2 Test Server
...
Reviewed-by: dfuchs, michaelm
2020-04-03 07:27:53 +01:00
Julia Boes
eb7c80a308
8241674: Fix incorrect jtreg option in FilePublisherPermsTest
...
Replace jtreg option 'policy' with 'java.security.policy' to extend rather than replace policy
Reviewed-by: chegar, dfuchs
2020-03-26 14:58:53 +00:00
Julia Boes
d882d528bb
8235459: HttpRequest.BodyPublishers::ofFile assumes the default file system
...
Add support for non-default file systems to HttpRequest.BodyPublishers::ofFile
Reviewed-by: chegar, dfuchs, amlu
2020-03-26 11:52:15 +00:00
Rahul Yadav
c5a7490809
8240921: Minor correction to HttpResponse.BodySubscribers example
...
The fix updates the incorrect example of the usage of the class java.net.http.HttpResponse.BodySubscribers.
Reviewed-by: chegar, dfuchs, jboes, pconcannon
2020-03-20 20:16:34 +00:00
John Jiang
edaf548beb
8238740: java/net/httpclient/whitebox/FlowTestDriver.java would not specify a TLS protocol
...
Reviewed-by: dfuchs
2020-03-10 21:43:46 +08:00
Daniel Fuchs
5c8f935641
8240754: Instrument FlowTest.java to provide more debug traces
...
Reviewed-by: chegar
2020-03-09 17:48:40 +00:00
Daniel Fuchs
f7c819a72d
8239052: java/net/httpclient/whitebox/SSLEchoTubeTestDriver.java failed with BufferUnderflowException against TLSv1.3
...
The test assumed that ByteBuffer would be split at long boundaries. This is obviously not always the case. A carry has been added to support reading a long split over several buffers.
Reviewed-by: chegar
2020-02-24 17:19:32 +00:00
Daniel Fuchs
f40220f578
8238990: java/net/httpclient/HandshakeFailureTest.java failed against TLSv1.3 on Windows
...
The SSLTube and SSLFlowDelegate are improved to wrap any non-SSL exception that occur during the handshake in an SSLHandshakeException.
Reviewed-by: chegar
2020-02-20 20:04:15 +00:00
John Jiang
446f59a26c
8234718: java/net/httpclient tests should cover TLSv1.3
...
Reviewed-by: dfuchs
2020-02-13 21:42:31 +08:00
John Jiang
fbca3fa710
8238677: java/net/httpclient/ssltest/CertificateTest.java should not specify TLS version
...
Reviewed-by: dfuchs
2020-02-11 08:36:02 +08:00
Mikael Vidstedt
3318314c7c
8237589: Fix copyright header formatting
...
Reviewed-by: jjg, serb, iris, jwilhelm
2020-01-21 14:23:01 -08:00
Daniel Fuchs
c6da6681d4
8236859: WebSocket over authenticating proxy fails with NPE
...
This change fixes several issues with WebSocket and proxy authentication. The AuthenticationFilter is changed to support an authenticating server accessed through an authenticating proxy. MultiExchange is fixed to close the previous connection if a new connection is necessary to establish the websocket (websocket connections are not cached and must be closed in that case). WebSocket OpeningHandshake is fixed to close the connection (without creating the RawChannel) if the opening handshake doesn't result in 101 upgrade protocol.
Reviewed-by: prappo, chegar
2020-01-17 17:55:06 +00:00
Julia Boes
d948bfd584
8232853: AuthenticationFilter.Cache::remove may throw ConcurrentModificationException
...
Change implementation to use iterator instead of plain LinkedList
Reviewed-by: dfuchs, vtewari
2019-11-08 11:15:16 +00:00
Daniel Fuchs
eaba9fe23b
8233403: Improve verbosity of some httpclient tests
...
Improve the verbosity of some httpclient tests to help diagnosis of intermittent failures. Also fixes ShortRequestBody test.
Reviewed-by: chegar
2019-11-07 16:18:02 +00:00
Chris Hegarty
9f6af13f9d
8232367: Update the jdk/java/net/httpclient tests to RS TCK 1.0.3
...
Reviewed-by: dfuchs
2019-11-04 10:06:59 +00:00
Daniel Fuchs
b3477399d0
8232625: HttpClient redirect policy should be more conservative
...
When enabled, HttpClient redirect is fixed to drop the body when the request method is changed, and to relay any redirection code it does not understand to the caller.
Reviewed-by: chegar
2019-10-23 15:54:39 +01:00
Daniel Fuchs
ecde34ee35
8231449: HttpClient’s client ssl certificate authentication seems to be broken
...
SSLFlowDelegate.Reader and SubscriberWrapper are changed to better cooperate on when more demand should be requested from upstream. The issue encountered in this scenario was triggered by a large certificate which caused the SSLFlowDelegate to stop requesting data from upstream during the handshake although the engine handshake status was NEED_UNWRAP.
Reviewed-by: chegar
2019-10-16 14:50:53 +01:00
Daniel Fuchs
8e98ce54bf
8231506: Fix some instabilities in a few networking tests
...
Reviewed-by: alanb, chegar, msheppar
2019-10-01 12:10:33 +01:00
Chris Hegarty
0b881387f2
8231504: Update networking tests to avoid implicit dependency on the system proxies
...
Reviewed-by: dfuchs
2019-09-27 09:55:35 +01:00
Patrick Concannon
11d43732bc
8217825: Verify @AfterTest is used correctly in WebSocket tests
...
Remove @AfterTest tags; added in explicit closing of resources e.g. httpServer, webSocket, etc
Reviewed-by: dfuchs, prappo
2019-09-23 16:53:16 +01:00
Daniel Fuchs
10e4fd4b95
8230526: jdk.internal.net.http.PlainProxyConnection is never reused by HttpClient
...
Fixed the PlainProxyConnection lookup key.
Reviewed-by: chegar
2019-09-09 18:23:39 +01:00
Julia Boes
fb3b0ab1fb
8230000: some httpclients testng tests run zero test
...
Two tests needed to declared their test methods public, the last one was a simple abstract framework for subclasses and needed its @test keyword removed.
Reviewed-by: chegar, aefimov, dfuchs
2019-08-26 14:48:12 +01:00
Aleksei Efimov
b4a7fb856b
8228508: [TESTBUG] java/net/httpclient/SmokeTest.java fails on Windows7
...
Reviewed-by: dfuchs, chegar
2019-08-13 16:11:28 +01:00
Patrick Concannon
9f7cbf60e4
8228970: AssertionError in ResponseSubscribers$HttpResponseInputStream
...
HttpResponseInputStream::read(byte[],int,int) now implements the same check than the InputStream::read(byte[],int,int).
Reviewed-by: prappo, chegar, dfuchs
2019-08-08 18:44:11 +01:00
Pavel Rappo
3395bb591b
8226602: Test convenience reactive primitives from java.net.http with RS TCK
...
Reviewed-by: chegar, dfuchs
2019-07-02 13:25:51 +01:00
Michael McMahon
faea44aec3
8222968: ByteArrayPublisher is not thread-safe resulting in broken re-use of HttpRequests
...
Reviewed-by: chegar, dfuchs
2019-06-28 11:26:07 +01:00
Pavel Rappo
b870874d22
Merge
2019-06-19 12:17:22 +01:00
Pavel Rappo
d49e648148
8226303: Examine the HttpRequest.BodyPublishers for exception handling
...
Reviewed-by: chegar
2019-06-18 14:12:06 +01:00
Chris Hegarty
d577d9c678
8226319: Add forgotten test/jdk/java/net/httpclient/BodySubscribersTest.java
...
Reviewed-by: dfuchs, prappo
2019-06-18 18:38:53 +01:00
Jaikiran Pai
a92f0016f3
8217705: HttpClient - wrong exception type when bad status line is received
...
Throw a ProtocolException if the status code in the HTTP response's status line isn't a 3-digit integer
Reviewed-by: dfuchs
2019-06-14 10:19:04 +05:30
Daniel Fuchs
853da81cfe
8222527: HttpClient doesn't send HOST header when tunelling HTTP/1.1 through http proxy
...
HttpClient no longer filters out system host header when sending tunelling CONNECT request to proxy
Reviewed-by: michaelm
2019-04-18 17:56:46 +01:00
Daniel Fuchs
47b9d898ab
8221395: HttpClient leaving connections in CLOSE_WAIT state until Java process ends
...
When a non WebSocket connection is not returned to the pool, it needs to be closed even if HttpConnection::isOpen yields false.
Reviewed-by: chegar, michaelm
2019-03-28 12:16:36 +00:00
Arthur Eubanks
0c2b7c4fc3
8220575: Replace hardcoded 127.0.0.1 in URLs with new URI builder
...
Reviewed-by: dfuchs, chegar
2019-03-27 09:06:43 -07:00
Arthur Eubanks
ef9ce3be1e
8220083: Use InetAddress.getLoopbackAddress() in place of 127.0.0.1 for some tests
...
Tests that hardcode "127.0.0.1" fail in an environment where only IPv6 is available and IPv4 is not.
Reviewed-by: chegar, dfuchs, michaelm
2019-02-27 13:34:40 -08:00
Chris Hegarty
ac5daa7a22
Merge
2019-02-08 13:07:44 +00:00
Chris Hegarty
bba5ddd08f
Merge
2019-02-08 12:44:16 +00:00
Chris Hegarty
fb05ae21bb
8218662: Allow 204 responses with Content-Length:0
...
Reviewed-by: michaelm
2019-02-08 12:23:16 +00:00
Chris Hegarty
10a281c485
8218546: Unable to connect to https://google.com using java.net.HttpClient
...
Reviewed-by: dfuchs
2019-02-08 11:26:21 +00:00
Daniel Fuchs
6e04e7659a
8216562: UnknownBodyLength sometimes fails due to "Connection reset by peer"
...
Uses a longer linger time and avoids closing socket too early.
Reviewed-by: chegar
2019-01-30 18:21:06 +00:00
Chris Hegarty
02924f478b
8217976: test/jdk/java/net/httpclient/websocket/WebSocketProxyTest.java fails intermittently
...
Reviewed-by: dfuchs
2019-01-29 16:12:12 +00:00
Daniel Fuchs
6dcfd0f93a
8217882: java/net/httpclient/MaxStreams.java failed once
...
Added some more traces to help diagnosis
Reviewed-by: bpb
2019-01-28 18:49:34 +00:00
Daniel Fuchs
6b64f80be4
8217903: java/net/httpclient/Response204.java fails with 404
...
Fixed test to use loopback address - this looks like a port reuse issue.
Reviewed-by: chegar
2019-01-28 18:45:34 +00:00
Daniel Fuchs
8faf2074b1
8210130: java/net/httpclient/UnknownBodyLengthTest.java failed
...
The fix improves the test robustness by making it retry once in case of IO/Connect exception.
Reviewed-by: chegar
2019-01-28 15:24:41 +00:00
Chris Hegarty
46f4ab603b
8217429: WebSocket over authenticating proxy fails to send Upgrade headers
...
Reviewed-by: dfuchs, prappo
2019-01-28 13:51:16 +00:00
Daniel Fuchs
7f10cbedd5
8217627: HttpClient: The API documentation of BodySubscribers::mapping promotes bad behavior
...
The API documentation is updated to steer away from blocking in the mapper function, and an alternative is suggested.
Reviewed-by: chegar
2019-01-25 18:13:25 +00:00
Daniel Fuchs
a8ae1c1332
8217264: HttpClient: Blocking operations in mapper function do not work as documented
...
Ensures that a new task is spawned when calling getBody() on a mapping BodySubscriber.
Reviewed-by: chegar
2019-01-24 12:32:42 +00:00
Michael McMahon
d089a4ae51
8217237: HttpClient does not deal well with multi-valued WWW-Authenticate challenge headers
...
Reviewed-by: chegar, dfuchs
2019-01-17 15:24:20 +00:00
Daniel Fuchs
3b68bb2960
8217094: HttpClient SSL race if a socket IOException is raised before ALPN is available
...
The patch makes suer that the SSLFlowDelegate's ALPN CF is always completed
Reviewed-by: chegar
2019-01-16 19:09:16 +00:00
Daniel Fuchs
ca77adf19f
8216974: HttpConnection not returned to the pool after 204 response
...
MultiExchange now call nullBody() on Exchange after receiving 204
Reviewed-by: chegar
2019-01-15 11:34:20 +00:00
Daniel Fuchs
6627b03332
8216498: Confusing and unneeded wrapping of SSLHandshakeException
...
[httpclient] Avoid wrapping SSLHandshakeException in plain IOException
Reviewed-by: chegar
2019-01-11 14:48:19 +00:00
Roger Riggs
48d68d182a
8214014: Remove vestiges of gopher: protocol proxy support
...
Reviewed-by: lancea, alanb
2018-11-28 16:04:36 -05:00
Michael McMahon
028f2e14b3
8213189: Make restricted headers in HTTP Client configurable and remove Date by default
...
Reviewed-by: dfuchs
2018-11-14 14:23:21 +00:00
Chris Hegarty
84d6099da9
8213296: Fix legal headers in test/jdk/java/net
...
Reviewed-by: alanb, dfuchs
2018-11-02 16:11:29 +00:00
Michael McMahon
ae21c81dd7
8212926: HttpClient does not retrieve files with large sizes over HTTP/1.1
...
Reviewed-by: chegar, dfuchs
2018-10-25 12:09:41 +01:00
Chris Hegarty
cea4eef60a
8212695: Add explicit timeout to several HTTP Client tests
...
Reviewed-by: dfuchs, michaelm
2018-10-22 12:25:31 +01:00
Michael McMahon
b9279ef850
8211437: java.net.http.HttpClient hangs on 204 reply without Content-length 0
...
Reviewed-by: chegar, dfuchs
2018-10-19 14:23:43 +01:00
John Jiang
4fe2edae59
8211978: Move testlibrary/jdk/testlibrary/SimpleSSLContext.java and testkeys to network testlibrary
...
Move SimpleSSLContext.java and testkeys to test/lib/jdk/test/lib/net
Reviewed-by: chegar
2018-10-15 22:47:03 +08:00
Michael McMahon
96b43418b5
8203850: java.net.http HTTP client should allow specifying Origin and Referer headers
...
Reviewed-by: chegar, dfuchs
2018-10-12 11:12:51 +01:00
Hamlin Li
1adaa503bb
8210802: temp files left by tests in jdk/java/net/httpclient
...
Reviewed-by: chegar, clanger
2018-09-18 13:24:25 +08:00
Igor Ignatyev
8b28ad6efe
8210732: remove jdk.testlibrary.Utils
...
Reviewed-by: alanb, jcbeyler
2018-09-14 14:02:57 -07:00
Michael McMahon
42de356cbd
8207966: HttpClient response without content-length does not return body
...
Reviewed-by: chegar
2018-08-16 10:22:48 +01:00
Xue-Lei Andrew Fan
66e8f27bd8
8207009: TLS 1.3 half-close and synchronization issues
...
Reviewed-by: jnimeh, mullan, wetmore
2018-08-14 16:47:56 -07:00
Chris Hegarty
166030817f
8208391: Differentiate response and connect timeouts in HTTP Client API
...
Reviewed-by: michaelm
2018-08-09 11:23:12 +01:00
Chris Hegarty
577cdf1f49
8207960: Non-negative WINDOW_UPDATE increments may leave the stream window size negative
...
Reviewed-by: michaelm
2018-07-24 10:07:26 +01:00
Chris Hegarty
e605cae39f
8207959: The initial value of SETTINGS_MAX_CONCURRENT_STREAMS should have no limit
...
Reviewed-by: michaelm
2018-07-23 11:47:03 +01:00
Michael McMahon
5cbda815d0
8206001: Enable TLS1.3 by default in Http Client
...
Reviewed-by: dfuchs
2018-07-04 16:16:24 +01:00
Xue-Lei Andrew Fan
87c6761704
8196584: TLS 1.3 Implementation
...
Co-authored-by: Adam Petcher <adam.petcher@oracle.com>
Co-authored-by: Amanda Jiang <amanda.jiang@oracle.com>
Co-authored-by: Anthony Scarpino <anthony.scarpino@oracle.com>
Co-authored-by: Bradford Wetmore <bradford.wetmore@oracle.com>
Co-authored-by: Jamil Nimeh <jamil.j.nimeh@oracle.com>
Co-authored-by: John Jiang <sha.jiang@oracle.com>
Co-authored-by: Rajan Halade <rajan.halade@oracle.com>
Co-authored-by: Sibabrata Sahoo <sibabrata.sahoo@oracle.com>
Co-authored-by: Valerie Peng <valerie.peng@oracle.com>
Co-authored-by: Weijun Wang <weijun.wang@oracle.com>
Reviewed-by: ascarpino, coffeys, dfuchs, jjiang, jnimeh, mullan, rhalade, ssahoo, valeriep, weijun, wetmore, xuelei
2018-06-25 13:41:39 -07:00
Chris Hegarty
659fdd8dc4
8204679: HTTP Client refresh
...
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Michael McMahon <michael.x.mcmahon@oracle.com>
Co-authored-by: Pavel Rappo <pavel.rappo@oracle.com>
Reviewed-by: chegar, dfuchs, michaelm
2018-06-20 09:05:57 -07:00
Chris Hegarty
8e69e1b11f
8202423: Small HTTP Client refresh
...
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Michael McMahon <michael.x.mcmahon@oracle.com>
Co-authored-by: Pavel Rappo <pavel.rappo@oracle.com>
Reviewed-by: chegar, dfuchs, michaelm, prappo
2018-05-02 02:36:17 -07:00
Ivan Gerasimov
97c8fdb2dd
8175075: Add 3DES to the default disabled algorithm security property
...
Reviewed-by: xuelei, mullan, rhalade
2018-01-19 11:24:39 -08:00
Chris Hegarty
a3b61fd4c7
8197564: HTTP Client implementation
...
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Michael McMahon <michael.x.mcmahon@oracle.com>
Co-authored-by: Pavel Rappo <pavel.rappo@oracle.com>
Reviewed-by: chegar, dfuchs, michaelm, prappo
2018-04-17 08:54:17 -07:00
Chris Hegarty
7acb09ea5e
8195823: Buffers given to response body subscribers should not contain unprocessed HTTP data
...
Reviewed-by: dfuchs, michaelm
2018-01-23 12:23:55 +00:00
Daniel Fuchs
424048c75f
8195138: The asynchronous Http1HeaderParser doesn't handle all line folds correctly
...
Reviewed-by: chegar
2018-01-16 19:19:03 +00:00
Chris Hegarty
2c4e89d7a2
8194883: Unhandleable Push Promises should be cancelled
...
Reviewed-by: dfuchs
2018-01-13 16:47:11 +00:00
Chris Hegarty
7302c9c8c5
8193365: Improve interoperability between HTTP Client's BodyPublisher/BodySubscriber and Flow.Subscriber/Publisher
...
Reviewed-by: dfuchs
2017-12-21 16:58:51 +00:00
Chris Hegarty
fc13efa1f3
8193698: Null handling in BodyPublisher, BodyHandler, and BodySubscriber convenience static factory methods
...
Reviewed-by: dfuchs
2017-12-18 10:21:38 +00:00
Michael McMahon
2ef82abdb6
8192966: HttpClient should reuse TCP connection for h2c connections
...
Reviewed-by: dfuchs
2017-12-19 15:48:49 +00:00
Daniel Fuchs
c8868455fe
8193370: Provide more user friendly defaults for HTTP/2 client settings
...
Reviewed-by: chegar
2017-12-13 16:16:17 +00:00
Chris Hegarty
37811b7460
8191494: Refresh incubating HTTP Client
...
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Michael McMahon <michael.x.mcmahon@oracle.com>
Co-authored-by: Pavel Rappo <pavel.rappo@oracle.com>
Reviewed-by: chegar, dfuchs, michaelm
2017-12-06 11:11:59 -08:00
Chris Hegarty
b98d0bda76
8181176: java/net/httpclient/websocket/ConnectionHandover.java times out
...
Reviewed-by: coffeys
2017-09-26 10:20:35 +01:00
Felix Yang
e634950b41
8187026: Remove intermittent key from java/net/httpclient/http2/BasicTest.java
...
Reviewed-by: chegar
2017-09-21 19:48:32 -07:00
Erik Joelsson
3789983e89
8187443: Forest Consolidation: Move files to unified layout
...
Reviewed-by: darcy, ihse
2017-09-12 19:03:39 +02:00