@Override
    public boolean hasPendingWrites() {
        return false;
    }
always returns false as there will be not be any
pending writes since we directly write to socketChannel.
clients/src/main/java/org/apache/kafka/common/network/PlaintextTransportLayer.java