paho.mqtt.java icon indicating copy to clipboard operation
paho.mqtt.java copied to clipboard

java client always disconnect and reconnect

Open mobaiLv opened this issue 2 years ago • 1 comments

Bug exists in MQTTv3 Client on Release Version 1.2.0 (Master Branch)

In what scenario will mqtt clients proactively disconnect themselves? My client frequently disconnects and reconnects

mobaiLv avatar May 15 '23 03:05 mobaiLv

That could occur if your clients share the same client_id. In that case when those clients have auto-reconnect feature turned on, then they will disconnect each other on a reconnect attempt.

Obviously that behavior might depend on a MQTT broker you're using.

Adam-Grzenda avatar May 15 '23 11:05 Adam-Grzenda