private synchronized void close() { disposeSasl(); data = null; dataLengthBuffer = null; if (!channel.isOpen()) return; try {socket.shutdownOutput();} catch(Exception e) { LOG.debug("Ignoring socket shutdown exception", e); } if (channel.isOpen()) { IOUtils.cleanup(null, channel); } IOUtils.cleanup(null, socket); } }
private synchronized void close() { disposeSasl(); data = null; dataLengthBuffer = null; if (!channel.isOpen()) return; try {socket.shutdownOutput();} catch(Exception e) { LOG.debug("Ignoring socket shutdown exception", e); } if (channel.isOpen()) { IOUtils.cleanup(null, channel); } IOUtils.cleanup(null, socket); } }
private synchronized void close() { disposeSasl(); data = null; dataLengthBuffer = null; if (isSSLEnabled && rpcSSLEngine != null) { try { rpcSSLEngine.close(); } catch (IOException ex) { if (LOG.isDebugEnabled()) { LOG.debug("Ignoring exception while closing the socket", ex); } } } if (!channel.isOpen()) return; try {socket.shutdownOutput();} catch(Exception e) { LOG.debug("Ignoring socket shutdown exception", e); } if (channel.isOpen()) { IOUtils.cleanup(null, channel); } IOUtils.cleanup(null, socket); } }
private synchronized void close() { disposeSasl(); data = null; dataLengthBuffer = null; if (!channel.isOpen()) return; try {socket.shutdownOutput();} catch(Exception e) { LOG.debug("Ignoring socket shutdown exception", e); } if (channel.isOpen()) { IOUtils.cleanup(null, channel); } IOUtils.cleanup(null, socket); } }
private synchronized void close() { disposeSasl(); data = null; dataLengthBuffer = null; if (!channel.isOpen()) return; try {socket.shutdownOutput();} catch(Exception e) { LOG.debug("Ignoring socket shutdown exception", e); } if (channel.isOpen()) { IOUtils.cleanup(null, channel); } IOUtils.cleanup(null, socket); } }
private void switchToSimple() { // disable SASL and blank out any SASL server authProtocol = AuthProtocol.NONE; disposeSasl(); }
private void switchToSimple() { // disable SASL and blank out any SASL server authProtocol = AuthProtocol.NONE; disposeSasl(); }