i want to make stress test on mosquitto, so i create some code as below
for (int i = 0; i < 800; i++) { final int j = i; Thread t = new Thread
I got this exact same error using code similar to above. I found that changing the QOS to 0 fixed the problem.
message.setQos(0);
[Edit] A bit more digging and I discovered that the MQTT plugin for RabbitMQ doesn't support a QOS of 2. http://www.rabbitmq.com/mqtt.html