HBASE-14385 Close the sockets that is missing in connection closure.

This commit is contained in:
Srikanth Srungarapu 2015-09-09 23:31:37 -07:00
parent 7d018ec789
commit 1a19b0ee17
1 changed files with 9 additions and 0 deletions

View File

@ -873,6 +873,15 @@ public class RpcClientImpl extends AbstractRpcClient {
}
IOUtils.closeStream(in);
this.in = null;
if (this.socket != null) {
try {
this.socket.close();
this.socket = null;
} catch (IOException e) {
LOG.error("Error while closing socket", e);
}
}
disposeSasl();
// log the info