/** * Close the connection. * * @param force Should the underlying socket be forcibly closed? * * @throws IOException If closing the secure channel fails. */ public void close(boolean force) throws IOException { if (isOpen() || force) { close(); } }
@Override public boolean isClosed() { return closed || !getSocket().isOpen(); }
countDownConnection(); if (socket.getSocket().isOpen()) { socket.getSocket().close(true);