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