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

DisconnectedAsync not fired on time #1480

Closed
Stannieman opened this issue Aug 2, 2022 · 0 comments · Fixed by #1495
Closed

DisconnectedAsync not fired on time #1480

Stannieman opened this issue Aug 2, 2022 · 0 comments · Fixed by #1495
Labels
bug Something isn't working

Comments

@Stannieman
Copy link
Contributor

Stannieman commented Aug 2, 2022

Describe the bug

DisconnectedAsync is not fired when disconnected from the network after KeepAlivePeriod + TimeOut elapsed.
It is only fired after 20 seconds and there seems to be no way to detect disconnects quicker than this.
The broker does see that the client disconnects so it is definitely disconnected.

Possibly related: #1411

Which component is your bug related to?

  • Client

To Reproduce

  1. Connect a client to a broker with options that have a KeepAlivePeriod of 2 seconds and Timeout of 1 second.
  2. Disable Wi-Fi (I connected to a broker over Wi-Fi, not sure if this matters)
  3. You can keep publishing messages and they will all fail.
  4. DisconnectedAsync is only fired after 20 seconds.

Expected behavior

When the first ping request or regular publish after the network disconnect fails then DisconnectedAsync is fired immediately.

@Stannieman Stannieman added the bug Something isn't working label Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant