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

auto reconnect not work if the network break four hours when network recorvery #1568

Open
leetb-leetb opened this issue Jan 26, 2025 · 1 comment

Comments

@leetb-leetb
Copy link

version 1.3.14, my code is blew:
conn_opts.automaticReconnect = 1;
conn_opts.minRetryInterval = 48;
conn_opts.maxRetryInterval = 96;
conn_opts.keepAliveInterval = 60;

when my netwok broken , i can receive MQTTAsync_connectionLost, but after four hours or more , my network recovery, the client can't auto reconnect, seem the client had sleepped, i must do something to wake up client,then it can auto connect, is there some settings which let client not sleep, always to retry to reconnect?

@icraggs
Copy link
Contributor

icraggs commented Feb 11, 2025

You need to take a trace at the protocol level as described in the README so I can see what actions are being taken.

What is the OS?

Does automatic reconnect work if the time period is smaller, or does it never work?

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

No branches or pull requests

2 participants