环境
- EMQX 版本:4.4.17
- 操作系统版本:Windows10
重现此问题的步骤
/sys/login/register
ffff
2023-06-07 08:54:18.574 INFO 9856 — [_serve_subsribe] c.g.m.d.service.PushCallbackService : ---------------------连接断开,可以做重连
2023-06-07 08:54:48.621 INFO 9856 — [_serve_subsribe] c.g.m.d.service.impl.MQTTServiceImpl : 已断开连接
org.eclipse.paho.client.mqttv3.MqttException: 已断开连接
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:197)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.EOFException: null
at java.io.DataInputStream.readByte(DataInputStream.java:267)
at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:92)
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:137)
… 1 common frames omitted
/sys/login/register
ffff
2023-06-07 08:54:50.949 INFO 9856 — [_serve_subsribe] c.g.m.d.service.PushCallbackService : ---------------------连接断开,可以做重连
2023-06-07 08:54:50.949 INFO 9856 — [_serve_subsribe] c.g.m.d.service.impl.MQTTServiceImpl : 客户机正在断开连接
org.eclipse.paho.client.mqttv3.MqttException: 客户机正在断开连接
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.connect(MqttAsyncClient.java:729)
at org.eclipse.paho.client.mqttv3.MqttClient.connect(MqttClient.java:331)
at com.goodcom.mdm.device.service.impl.MQTTServiceImpl.subsribeConnect(MQTTServiceImpl.java:132)
at com.goodcom.mdm.device.service.impl.PushCallbackServiceImpl.connectionLost(PushCallbackServiceImpl.java:46)
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.connectionLost(CommsCallback.java:304)
at org.eclipse.paho.client.mqttv3.internal.ClientComms.shutdownConnection(ClientComms.java:441)
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:197)
at java.lang.Thread.run(Thread.java:748)
/sys/login/register
ffff
2023-06-07 08:54:53.265 INFO 9856 — [_serve_subsribe] c.g.m.d.service.PushCallbackService : ---------------------连接断开,可以做重连
2023-06-07 08:55:23.279 INFO 9856 — [_serve_subsribe] c.g.m.d.service.impl.MQTTServiceImpl : 已断开连接