A test making connections to various web servers from Linux intermittently
fails with:
Test caughtjava.net.SocketException: Transport endpoint is not connected
java.net.SocketException: Transport endpoint is not connected
at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
at sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:362)
at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:344)
at webClientTest2.<init>(webClientTest2.java:132)
at webClientTest2.main(webClientTest2.java:244)
Execute the attached test, webClientTest2 in either blocking (use -b)
or non-blocking mode (default) to any webserver. Examples:
java webClientTest2 -webServer impulse.sfbay.sun.com
java webClientTest2 -webServer impulse.sfbay.sun.com -b
java webClientTest2 -webServer 129.145.129.119 -port 80
java webClientTest2 -webServer 129.145.129.119 -port 80 -b
fails with:
Test caughtjava.net.SocketException: Transport endpoint is not connected
java.net.SocketException: Transport endpoint is not connected
at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
at sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:362)
at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:344)
at webClientTest2.<init>(webClientTest2.java:132)
at webClientTest2.main(webClientTest2.java:244)
Execute the attached test, webClientTest2 in either blocking (use -b)
or non-blocking mode (default) to any webserver. Examples:
java webClientTest2 -webServer impulse.sfbay.sun.com
java webClientTest2 -webServer impulse.sfbay.sun.com -b
java webClientTest2 -webServer 129.145.129.119 -port 80
java webClientTest2 -webServer 129.145.129.119 -port 80 -b