public CompletableFuture<Boolean> connect(InetSocketAddress address) throws IOException {
        log.trace("Connecting to [%s]", address);
        final SocketChannel channel = (SocketChannel) this.selectionKey.channel();
        if (!channel.connect(ClickHouseChecker.nonNull(address, InetSocketAddress.class.getSimpleName()))) {
            setInterestOp(SelectionKey.OP_CONNECT);
        }

        return ClickHouseClient.submit(this::start);
    }
Reads byte from socket input buffer.

@param config non-null configuration
@param sc     socket channel
@param out    output stream
@return true if the read was a success; false otherwise
@throws IOException
clickhouse-client/src/main/java/com/clickhouse/client/AbstractSocketClient.java