eclipse / paho.mqtt.m2mqtt

Eclipse Public License 1.0
512 stars 303 forks source link

Fix runaway thread issue where MqttClient uses 100% CPU when disconnected #73

Closed mhellsten closed 6 years ago

mhellsten commented 6 years ago

During contention conditions, the broker (for example RabbitMQ) might disconnect the client before it is fully initialized. This might put MqttClient's ReceiveThread thread into a tight loop that it never recovers from, running the client machine out of CPU resources.