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

timeout keepalive while waiting for connack? #194

Closed
fabio-t opened this issue Mar 30, 2023 · 2 comments
Closed

timeout keepalive while waiting for connack? #194

fabio-t opened this issue Mar 30, 2023 · 2 comments
Assignees
Labels

Comments

@fabio-t
Copy link

fabio-t commented Mar 30, 2023

Hi,

We have numerous cases of this error:

[clietntid: "orbital-playground", event: {:timeout, #Reference<0.1149444164.1188036610.191>, :keepalive}, event_type: :info, msg: 'unexpected_event', state: :waiting_for_connack]

{:emqtt, :handle_event, 4}

About every 5 seconds (which, I see, is the default reconnect timeout). We are using emqtt 1.8.5 link to an EMQX broker (protocol v3.1, so "4" in the emqtt settings) and we set reconnect true.

Any clue what could be causing this?

@zmstone
Copy link
Member

zmstone commented Oct 17, 2023

thank you for reporting it. this is a bug.
the keepalive timer should be cancelled before reconnect.

@zmstone zmstone added the bug label Oct 17, 2023
@qzhuyan qzhuyan self-assigned this Nov 16, 2023
@qzhuyan
Copy link
Contributor

qzhuyan commented Nov 16, 2023

should be solved already in #166

@qzhuyan qzhuyan closed this as completed Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants