--- old/test/java/nio/channels/TestServers.java 2016-05-08 23:18:25.196152448 -0700 +++ new/test/java/nio/channels/TestServers.java 2016-05-08 23:18:24.943152465 -0700 @@ -340,7 +340,7 @@ * exactly matches the RFC - the only purpose of this server is to have * something that responds to nio tests... */ - static final class EchoServer extends AbstractTcpServer { + static class EchoServer extends AbstractTcpServer { public EchoServer() { this(0L); @@ -400,6 +400,21 @@ } /** + * A small TCP Server that accept connections but does not response to any input. + */ + static final class NoResponseServer extends EchoServer { + public NoResponseServer() { + super(Long.MAX_VALUE); + } + + public static NoResponseServer startNewServer() throws IOException { + final NoResponseServer noResponseServer = new NoResponseServer(); + noResponseServer.start(); + return noResponseServer; + } + } + + /** * A small TCP server that emulates the Day & Time service for tests * purposes. See http://en.wikipedia.org/wiki/Daytime_Protocol This server * uses an anonymous port - NOT the standard port 13. We don't guarantee