@Override public void open() throws TTransportException { if (!isOpen()) { throw new TTransportException(TTransportException.NOT_OPEN, "Expected the socket to be already connected."); } }
if (isOpen()) { throw new TTransportException(TTransportException.ALREADY_OPEN, "Socket already connected.");
if (client.isOpen()) { LOGGER.trace("Got an IOException while reading frame", ioe);
data.idle = true; if (!data.clientSocket.isOpen()) { cleanupConnection(data);