8203937: Not possible to read data from socket after write detects connection reset

Reviewed-by: chegar
This commit is contained in:
Alan Bateman 2018-06-06 12:17:01 +01:00
parent ee5ff58a3d
commit 79ed34634b
3 changed files with 142 additions and 11 deletions

View file

@ -109,10 +109,6 @@ class SocketOutputStream extends FileOutputStream {
try {
socketWrite0(fd, b, off, len);
} catch (SocketException se) {
if (se instanceof sun.net.ConnectionResetException) {
impl.setConnectionReset();
se = new SocketException("Connection reset");
}
if (impl.isClosedOrPending()) {
throw new SocketException("Socket closed");
} else {