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
Daniel Fuchs
710653ce18
8254786: java/net/httpclient/CancelRequestTest.java failing intermittently
...
Reviewed-by: jpai, michaelm
2022-03-15 12:59:54 +00:00
Mahendra Chhipa
95ca94436d
8282354: Remove dependancy of TestHttpServer, HttpTransaction, HttpCallback from open/test/jdk/ tests
...
Reviewed-by: dfuchs
2022-03-11 10:48:57 +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
Joe Darcy
1faa5c8092
8282686: Add constructors taking a cause to SocketException
...
Reviewed-by: alanb, xuelei, lancea, dfuchs
2022-03-07 17:52:04 +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
Jaikiran Pai
c17a0122c4
8278961: Enable debug logging in java/net/DatagramSocket/SendDatagramToBadAddress.java
...
Reviewed-by: dfuchs, msheppar
2022-01-13 13:23:57 +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
Alan Bateman
69d8669fb3
8278339: ServerSocket::isClosed may return false after accept throws
...
Reviewed-by: dfuchs
2021-12-07 14:22:35 +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
Aleksei Efimov
2ca4ff87b7
8244202: Implementation of JEP 418: Internet-Address Resolution SPI
...
Co-authored-by: Chris Hegarty <chegar@openjdk.org>
Co-authored-by: Daniel Fuchs <dfuchs@openjdk.org>
Co-authored-by: Alan Bateman <alanb@openjdk.org>
Reviewed-by: dfuchs, alanb, michaelm, chegar
2021-11-11 14:33:58 +00:00
Patrick Concannon
977154400b
8260428: Drop support for pre JDK 1.4 DatagramSocketImpl implementations
...
Reviewed-by: alanb, dfuchs, vtewari
2021-11-01 17:11:20 +00:00
Jonathan Dowland
394ebc8642
8270553: Tests should not use (real, in-use, routable) 1.1.1.1 as dummy IP value
...
Reviewed-by: shade, dfuchs
2021-09-14 17:12:49 +00:00
Evan Whelan
00e059ddb3
8133686: HttpURLConnection.getHeaderFields and URLConnection.getRequestProperties methods return field values in reverse order
...
Reviewed-by: dfuchs
2021-09-09 10:23:12 +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
Patrick Concannon
1578979df7
8269917: Insert missing commas in copyrights in java.net
...
Reviewed-by: chegar, dfuchs
2021-07-06 15:10:58 +00:00
Patrick Concannon
326b2e1344
8253119: Remove the legacy PlainSocketImpl and PlainDatagramSocketImpl implementation
...
Reviewed-by: alanb, dfuchs, chegar
2021-07-06 13:46:02 +00:00
Jesper Wilhelmsson
b6cfca8a89
Merge
2021-06-23 01:05:44 +00:00
Weijun Wang
ef4ba224c4
8268349: Provide clear run-time warnings about Security Manager deprecation
...
Reviewed-by: lancea, mullan, alanb
2021-06-22 02:06:59 +00:00
Jesper Wilhelmsson
a051e735cd
Merge
2021-06-18 00:53:09 +00:00
Patrick Concannon
7d7bdbe135
8268776: Test ADatagramSocket.java
missing /othervm from @run tag
...
Reviewed-by: dfuchs
2021-06-17 09:35:08 +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
Mahendra Chhipa
338dae4d36
8268133: Update java/net/Authenticator tests to eliminate dependency on sun.net.www.MessageHeader and some other internal APIs
...
Reviewed-by: dfuchs
2021-06-03 12:51:48 +00:00
Daniel Fuchs
178343750f
8264975: java/net/DatagramSocket/DatagramSocketMulticasting.java fails infrequently
...
Reviewed-by: alanb, chegar
2021-06-03 08:58:41 +00:00
Weijun Wang
6765f90250
8266459: Implement JEP 411: Deprecate the Security Manager for Removal
...
Co-authored-by: Sean Mullan <mullan@openjdk.org>
Co-authored-by: Lance Andersen <lancea@openjdk.org>
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Reviewed-by: erikj, darcy, chegar, naoto, joehw, alanb, mchung, kcr, prr, lancea
2021-06-02 11:57:31 +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
Mark Sheppard
bb085f684d
8265362: java/net/Socket/UdpSocket.java fails with "java.net.BindException: Address already in use" (macos-aarch64)
...
Reviewed-by: dfuchs, alanb
2021-05-24 17:59:39 +00:00
Weijun Wang
640a2afda3
8267184: Add -Djava.security.manager=allow to tests calling System.setSecurityManager
...
Co-authored-by: Lance Andersen <lancea@openjdk.org>
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Reviewed-by: dholmes, alanb, dfuchs, mchung, mullan, prr
2021-05-24 16:55:55 +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
Conor Cleary
6293299dd3
8264824: java/net/Inet6Address/B6206527.java doesn't close ServerSocket properly
...
Reviewed-by: aefimov, dfuchs, michaelm, vtewari
2021-04-15 14:05:55 +00:00
Aleksei Efimov
a611c462f9
8264048: Fix caching in Jar URL connections when an entry is missing
...
Co-authored-by: Daniel Fuchs <dfuchs@openjdk.org>
Reviewed-by: bchristi, dfuchs
2021-04-06 10:43:59 +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
Jonathan Dowland
ba504fcee8
8187450: JNI local refs exceeds capacity warning in NetworkInterface::getAll
...
Reviewed-by: chegar, dfuchs, aph
2021-03-22 15:29:47 +00:00
Craig Andrews
0c718ab2a0
8262277: URLClassLoader.getResource throws undocumented IllegalArgumentException
...
Reviewed-by: alanb, bchristi, psadhukhan
2021-03-15 18:35:04 +00:00
Conor Cleary
8bc8542e3f
8262195: Harden tests that use the HostsFileNameService (jdk.net.hosts.file property)
...
Reviewed-by: michaelm, aefimov, dfuchs, chegar
2021-03-01 10:18:12 +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
Daniel Fuchs
2c28e36454
8237352: Update DatagramSocket to add support for joining multicast groups
...
Reviewed-by: alanb
2021-02-08 12:55:00 +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
Joe Darcy
80544e4d5f
8250564: Remove terminally deprecated constructor in GSSUtil
...
8250565: Remove terminally deprecated constructor in java.net.URLDecoder
Reviewed-by: bpb, smarks, alanb, mullan
2021-01-06 18:05:33 +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
Conor Cleary
f5d36e6c94
8246741: NetworkInterface/UniqueMacAddressesTest: mac address uniqueness test failed
...
Reviewed-by: chegar, dfuchs
2020-11-06 17:35:24 +00:00
Michael McMahon
6bb7e45e8e
8245194: Unix domain socket channel implementation
...
Reviewed-by: erikj, dfuchs, alanb, chegar
2020-10-28 17:26:26 +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
Jaikiran Pai
5dd1eaded7
8252767: URLConnection.setRequestProperty throws IllegalAccessError
...
Reviewed-by: chegar, michaelm, alanb
2020-09-08 09:10:15 +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
Patrick Concannon
a096c0a83f
8240901: Add a test to check that large datagrams are sent/received on the network correctly
...
This fix updates `java/net/DatagramSocket/SendReceiveMaxSize.java` and `java/net/DatagramSocket/SendReceiveMaxSize.java` to check (on all platforms) that the sending/receiving of large datagrams across a network are sent, fragmented, and re-assembled correctly
Reviewed-by: alanb, dfuchs
2020-08-13 15:40:13 +01:00
Charlie Gracie
ed5696dd2c
8251361: Potential race between Logger configuration and GCs in HttpURLConWithProxy test
...
Keep a static reference to the logger to prevent its inadvertent garbage collection while the test is running.
Reviewed-by: dfuchs
2020-08-10 19:21:50 +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
Patrick Concannon
c8c4d8377a
8250886: java/net/DatagramSocket/SendReceiveMaxSize.java fails in timeout
...
SO_RCVBUF was previously set to match the SO_SNDBUF, however the kernel value for SO_RCVBUF is much larger. This mismatch caused the test to fail, and the fix removes this issue.
Reviewed-by: alanb, dfuchs
2020-08-07 20:39: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
Patrick Concannon
dc71097c2e
8250889: Disable testing SendReceiveMaxSize with preferIPv4Stack=true on the old impl until JDK-8250886 is fixed
...
The `test java/net/DatagramSocket/SendReceiveMaxSize` is currently failing when run with `-Djdk.net.usePlainDatagramSocketImpl` and `-Djava.net.preferIPv4Stack=true`. This fix removes these run settings from the test until a more permanent solution can be found.
Reviewed-by: dfuchs
2020-07-31 18:59:27 +01:00
Patrick Concannon
7fd5cb6117
8242885: PlainDatagramSocketImpl doesn’t allow for the sending of IPv6 datagrams on macOS with sizes between 65508-65527 bytes
...
This fix changes the current max size for IPv6 datagrams on macOS from it's current size of 65507, which is the IPv4 limit, to 65527, the actual limit for IPv6 on macOS
Reviewed-by: alanb, dfuchs, vtewari
2020-07-31 12:42:32 +01:00
Patrick Concannon
2dda9965cd
8246164: SendDatagramToBadAddress.java and ChangingAddress.java should be changed to explicitly require the new DatagramSocket implementation
...
This fix updates these tests to explicitly run with `-Djdk.net.usePlainDatagramSocketImpl=false` to avoid false failures when running all tests with a global jtreg -Djdk.net.usePlainDatagramSocketImpl switch.
Reviewed-by: vtewari
2020-07-31 12:12:49 +01:00
Daniel Fuchs
9f23c2c159
8249812: java/net/DatagramSocket/PortUnreachable.java still fails intermittently with SocketTimeoutException
...
Fixed the test to reenable its retry logic
Reviewed-by: alanb
2020-07-23 20:25:41 +01:00
Vyom Tewari
955aee3bfa
8237858: PlainSocketImpl.socketAccept() handles EINTR incorrectly
...
PlainSocketImpl.socketAccept() handles EINTR incorrectly
Reviewed-by: alanb, dfuchs, martin
2020-07-17 11:15:00 +05:30
Jesper Wilhelmsson
3dcd1c1ab0
Merge
2020-07-09 04:32:30 +02:00
Ivan Sipka
dda0c6cecd
8211974: move test/jdk/lib/testlibrary/java/util/jar/*.java to top-level library or a local library
...
Reviewed-by: rriggs, bchristi, lancea, iignatyev
2020-07-08 20:35:36 +01:00
Daniel Fuchs
0f43de9f02
8246114: java/net/MulticastSocket/Promiscuous.java fails after 8241072 (multi-homed systems)
...
Fixed the test - an IPv4 group cannot be joined from an interface that has no IPv4 address configured
Reviewed-by: alanb, amlu
2020-06-30 18:52:59 +01:00
Patrick Concannon
5b6f050fce
8245828: Remove unnecessary NetworkPermission checks from jdk/net/ExtendedSocketOptions.java
...
This fix removes NetworkPermission checks that were made redundant in jdk/net/ExtendedSocketOptions after the socket option SO_FLOW_SLA was removed.
Reviewed-by: alanb
2020-06-09 15:39:22 +01:00
Patrick Concannon
ac906168c8
8243999: DatagramSocket and MulticastSocket constructors don't specify how a null InetAddress is handled
...
This fix clarifies the behaviours of constructors from DatagramSocket and MulticastSocket when no address or a null address is supplied.
Reviewed-by: dfuchs
2020-06-09 15:26:53 +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
Patrick Concannon
d071ed0294
8244582: Remove terminally deprecated Solaris-specific SO_FLOW_SLA socket option
...
This patch removes ExtendedSocketOptions.SO_FLOW_SLA, SocketFlow and SocketFlow.Status which were terminally deprecated in JDK 14 in preparation for the removal of the Solaris port.
Reviewed-by: alanb, dfuchs, chegar, vtewari
2020-06-05 09:35:42 +01:00
Jesper Wilhelmsson
7c3d72fd3a
Merge
2020-06-30 20:09:03 +02: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
Conor Cleary
1b75b7de80
8246143: UnreferencedXXX tests fail when run with --illegal-access=deny
...
This patch updates the @modules tag with +open in the tests UnreferencedDatagramSockets and UnreferncedMulticastSockets in advance of the removal of --illegal-access to allow access to private member fields required by the tests.
Reviewed-by: alanb, dfuchs
2020-06-12 09:48:30 +01:00
Aleksei Efimov
02fbf44cc7
8244958: preferIPv4Stack and preferIPv6Addresses do not affect addresses returned by HostsFileNameService
...
Reviewed-by: dfuchs, alanb, vtewari
2020-05-29 13:39:16 +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
Patrick Concannon
4708c6d343
8243507: DatagramSocket constructors don’t always specify what happens when passed invalid parameters
...
This fix updates the spec for DatagramSocket's constructors to inform the user of the Exceptions thrown when an invalid argument is passed.
Reviewed-by: dfuchs
2020-05-29 11:08:09 +01:00
Vladimir A Ivanov
4aa057013c
8245517: java/net/SocketOption/AfterClose.java fails with Invalid value 'READ_ONLY'
...
Reviewed-by: dfuchs, pconcannon
2020-05-22 10:25:40 -07:00
Mikael Vidstedt
071bd521bc
8244224: Implementation of JEP 381: Remove the Solaris and SPARC Ports
...
Reviewed-by: alanb, bchristi, dcubed, dfuchs, eosterlund, erikj, glaubitz, ihse, iignatyev, jjiang, kbarrett, ksrini, kvn, naoto, prr, rriggs, serb, sspitsyn, stefank, tschatzl, valeriep, weijun, weijun
2020-05-20 17:33:37 -07:00
Vladimir A Ivanov
93fcbec20a
8243099: SO_INCOMING_NAPI_ID support
...
Add support for the SO_INCOMING_NAPI_ID socket option to jdk.net.ExtendedSocketOptions
Co-authored-by: Dinesh Kumar <dinesh.kumar@intel.com>
Reviewed-by: alanb, chegar, dfuchs, vtewari, pconcannon
2020-05-20 15:12:28 -07: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
Patrick Concannon
fad2cf51ba
8241072: Reimplement the Legacy DatagramSocket API
...
Replace the underlying implementations of the java.net.DatagramSocket and java.net.MulticastSocket APIs with simpler and more modern implementations that are easy to maintain and debug.
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Reviewed-by: alanb, chegar, dfuchs
2020-05-12 21:51:53 +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
Patrick Concannon
469c13a86d
8243488: Add tests for set/get SendBufferSize and getReceiveBufferSize in DatagramSocket
...
Tests added for methods: setSendBufferSize(int), getSendBufferSize(), and getReceieveBufferSize() to increase test coverage in the DatagramSocket class
Reviewed-by: alanb, chegar, dfuchs
2020-05-05 18:34:39 +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