8175131: sun.rmi.transport.tcp.TCPChannel.createConnection close connection on timeout
Reviewed-by: rriggs, msheppar
This commit is contained in:
parent
538f99f6ca
commit
2f402211d9
@ -296,11 +296,19 @@ public class TCPChannel implements Channel {
|
||||
out.flush();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
if (e instanceof RemoteException)
|
||||
if (e instanceof RemoteException) {
|
||||
throw (RemoteException) e;
|
||||
else
|
||||
} else {
|
||||
if (conn != null
|
||||
&& e instanceof java.net.SocketTimeoutException)
|
||||
{
|
||||
try {
|
||||
conn.close();
|
||||
} catch (Exception ex) {}
|
||||
}
|
||||
throw new ConnectIOException(
|
||||
"error during JRMP connection establishment", e);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user