absmach / mgate

mProxy is an MQTT proxy
https://abstractmachines.fr/magistrala.html
Apache License 2.0
78 stars 27 forks source link

Check if MQTT broker is available before establishing connection #27

Closed dborovcanin closed 3 years ago

dborovcanin commented 3 years ago

Before establishing a TCP connection with the MQTT broker, mProxy should issue a health check request to the broker. The broker might be up and running, but not ready to establish a connection yet due to the internal cluster synchronization, DB initialization, or any other reason. In that case, mProxy can establish a TCP connection with the broker that's not ready and end up dropping that connection later on when message exchange starts.

drasko commented 3 years ago

Resolved by https://github.com/mainflux/mainflux/pull/1305