Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client hangs on retry #223

Open
mcuadros opened this issue Mar 8, 2023 · 0 comments
Open

Client hangs on retry #223

mcuadros opened this issue Mar 8, 2023 · 0 comments

Comments

@mcuadros
Copy link

mcuadros commented Mar 8, 2023

The reconnect clients hang on reconnect when it resubscribing to a topic even if is QoS0:

ResponseTimeout time.Duration

It doesn't have any default value and it's used on the subscription to the topics: https://github.com/at-wat/mqtt-go/blob/master/retryclient.go#L361

So sorry but I don't have any sample code but till I configured the ResponseTimeout, my project was hanging after a few hours of working. Since I set up the timeout it's not happing anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant