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

emqtt library : client disconnected from broker even if keepalive is set to 300s #202

Open
cocoaway opened this issue May 27, 2023 · 1 comment

Comments

@cocoaway
Copy link

Hi,
I've set keepalive value to 300s on client , written in elixir.
The broker (emqx) shows '60' sec.

In config.exs
keepalive: System.get_env("MQ_KEEPALIVE", "300") |> String.to_integer()

Error message :
(EXIT from #PID<0.233.0>) shell process exited with reason: {:disconnected, 141, %{}}

@qzhuyan
Copy link
Contributor

qzhuyan commented Sep 18, 2023

broker is able to overwrite the keepalive value, could you check what is set at the broker side? or the Server Keep Alive value in connack from the broker?

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

2 participants