eclipse / paho.mqtt.android

MQTT Android
Other
2.92k stars 881 forks source link

Mqtt websocket attempts to reconnect throwing EOF exception #306

Open linguokun1 opened 6 years ago

linguokun1 commented 6 years ago

#358 I think this issue still exist

yumo-Don commented 6 years ago

请问这个问题,你找到了解决方案了吗,我这边项目也出现了相同的情况

linguokun1 commented 6 years ago

还没找到

SZMOFEI commented 3 years ago

I had the same problem 。 Maven 依赖是这个 image

Problem Description:

I create 5000 or 10000 mqtt clients in the loop. This problem appears in the process of rapid creation.

The exception information is as follows: 2021-03-12 17:35:53 [ERROR] MqttException,CONNECTION_LOST !!! sn SKYWAY0004057644 ,线程是 pool-1-thread-105 已断开连接 (32109) - java.io.IOException: Connection is lost. at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:197) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: Connection is lost. at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:172) ... 1 more