fusesource / mqtt-client

A Java MQTT Client
http://mqtt-client.fusesource.org/
Apache License 2.0
1.27k stars 369 forks source link

When reconnection Why create a “LoginHandler” #45

Open l7810 opened 8 years ago

l7810 commented 8 years ago

When disconnected from the network, why not wait until the heartbeat timeout and then a new connection? But rather detected the connection disconnect then re-create the login. image