protected void signalCloseDone() { if (!isClosed()) close(); closeFuture.get().set(null); // We can now close the socket if (incomingConnection != null) { //this will close the underlying socket and remove it //from active MessagingService connections (CASSANDRA-11854) incomingConnection.close(); } else { //this is an outgoing connection not registered in the MessagingService //so we can close the socket directly try { socket.close(); } catch (IOException e) { // Erroring out while closing shouldn't happen but is not really a big deal, so just log // it at DEBUG and ignore otherwise. logger.debug("Unexpected error while closing streaming connection", e); } } } }
protected void signalCloseDone() { if (!isClosed()) close(); closeFuture.get().set(null); // We can now close the socket if (incomingConnection != null) { //this will close the underlying socket and remove it //from active MessagingService connections (CASSANDRA-11854) incomingConnection.close(); } else { //this is an outgoing connection not registered in the MessagingService //so we can close the socket directly try { socket.close(); } catch (IOException e) { // Erroring out while closing shouldn't happen but is not really a big deal, so just log // it at DEBUG and ignore otherwise. logger.debug("Unexpected error while closing streaming connection", e); } } } }
protected void signalCloseDone() { if (!isClosed()) close(); closeFuture.get().set(null); // We can now close the socket if (incomingConnection != null) { //this will close the underlying socket and remove it //from active MessagingService connections (CASSANDRA-11854) incomingConnection.close(); } else { //this is an outgoing connection not registered in the MessagingService //so we can close the socket directly try { socket.close(); } catch (IOException e) { // Erroring out while closing shouldn't happen but is not really a big deal, so just log // it at DEBUG and ignore otherwise. logger.debug("Unexpected error while closing streaming connection", e); } } } }