java.io.EOFException with paho

后端 未结 7 886
感动是毒
感动是毒 2021-02-09 11:47

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:10

    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

提交回复
热议问题