8221259: New tests for java.net.Socket to exercise long standing behavior
Alan Bateman
Alan.Bateman at oracle.com
Thu Mar 21 15:06:19 UTC 2019
There are a number of tests in niosocketimpl-branch of the sandbox that
are needed to exercise Socket in ways that aren't fully exercised by the
existing tests. I'd like to bring some of these tests into jdk/jdk in
advance of the new NIO based SocketImpl, specifically:
- AsyncShutdown: invoke shutdownInput/shutdownOutput when a thread is
blocked in read/write
- ConnectionReset: tests the behavior specified by
Socket::getInputStream for cases where a connection is reset with data
and no data available
- UdpSocket: uses a deprecated Socket constructor to create UDP socket
- Timeouts: test timed connect, read and accept operations. This tests
several scenarios that the existing tests using timeouts do not exercise.
The webrev with the tests is here:
http://cr.openjdk.java.net/~alanb/8221259/webrev/
-Alan
More information about the net-dev
mailing list