MF-31- Workers get stuck when waiting for Paho Token #32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 [email protected]