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