absmach / export

Mainflux Export service that sends messages from one Mainflux cloud to another via MQTT
10 stars 11 forks source link

MF-31- Workers get stuck when waiting for Paho Token #32

Open pricelessrabbit opened 3 years ago

pricelessrabbit commented 3 years ago

fixes #31 fixes another worker issue i got: when paho disconnects from mqtt, if publish is called in the worker instead of a separated goroutine, the worker freezes for about 30sec (there is a blackout before the "disconnected" log message from paho

drawbacks of the fix: currently if the timeout is hit, there is no log when paho actually send the message when it reconnects

Signed-off-by: PricelessRabbit PricelessRabbit@gmail.com