You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
After every 20 minutes, the client is getting disconnected from the AWS IoT endpoint with this error and then getting reconnected
2024-06-13T04:29:10.601Z [ERROR] {SharedCrtResourceManager.cpp}: MQTT Connection interrupted with error: `libaws-c-mqtt: AWS_ERROR_MQTT_TIMEOUT, Time limit between request and response has been exceeded.`. Device Client will retry connection until it is successfully connected to the core.
Setup
Version: v1.8.28-95db8c9
Running aws-iot-device-client as systemd service meant to be connected continuously with AWS IoT endpoint
I looked and found that changing the default keepAlive and reconnectTimeout connection settings can fix this but I could not find these options in the cli help or the template config.json
It will be great if we can configure these options.
Also, more help on how to solve this issue will be appreciated.
More Context
Whenever the client is disconnected, the AWS IoT thing's activity reports the following disconnect event with DUPLICATE_CLIENTID error message but I have confirmed that only one such client exists.
Hello @rOY369 , thank you for reaching out to us and thank you for sharing this finding with us on changing default connection setting from keepAlive and reconnectTimeout. Yes, right now we do not have any CLI option to set this connection property.
Device Client is an community project where we encourage our opensource community to contribute. We would encourage you to cut us a PR with this change so we can review and merge the change.
If that is something not possible for you right now, then please be patient with us until team works on adding this enhancement. It might take some time since we are swamped with other PR and bug fixes right now.
Thank you for being patient with us.
Regards,
Harsh Gandhi
Hello @rOY369 , I am closing this ticket now since we are internally tracking this future enhancement separately. Thank you again for your enhancement request and also feel free to make a code change to contribute in this community.
Problem
After every 20 minutes, the client is getting disconnected from the AWS IoT endpoint with this error and then getting reconnected
Setup
Request
keepAlive
andreconnectTimeout
connection settings can fix this but I could not find these options in the cli help or the template config.jsonMore Context
DUPLICATE_CLIENTID
error message but I have confirmed that only one such client exists.Thank you!
The text was updated successfully, but these errors were encountered: