-
Notifications
You must be signed in to change notification settings - Fork 255
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
MQTT.js connections hits timeout #890
Comments
can you share your rumqttd config? what are you setting as also, as it works for rumqttc and only fails for mqtt.js, can you verify if mqtt.js is working with other broker? |
Certainly:
I'm quite surpised, that |
connection_timeout_ms is for preventing DOS attacks where client just opens connection but never send connect packet. On other hand, once connection is accepted, we use keepalive value to determine when it should be dropped based on it's keep alive value set in connect packet. |
mqtt.js works as expected with mosquitto |
Please describe the behavior you are expecting
mqtt.js can connect
What is the current behavior?
Websocket connection fails with:
Only fails with mqtt.js but not rumqttc(examples/websocket)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Context
Hits timeout at:
rumqtt/rumqttd/src/link/remote.rs
Line 185 in db1f261
and once the first timeout is commented it'll hit here:
rumqtt/rumqttd/src/link/network.rs
Line 106 in db1f261
since
self.keepalive
is set to 0nsThe text was updated successfully, but these errors were encountered: