java.io.EOFException with paho

后端 未结 7 1456
慢半拍i
慢半拍i 2021-02-09 11:23

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         


        
7条回答
  •  甜味超标
    2021-02-09 12:13

    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

提交回复
热议问题