Azure / azure-iot-sdk-c

A C99 SDK for connecting devices to Microsoft Azure IoT services
https://azure.github.io/azure-iot-sdk-c
Other
588 stars 740 forks source link

Behavioural question of the keepalivetimeout in mqtt #2358

Closed Srini-Zoetis closed 2 years ago

Srini-Zoetis commented 2 years ago

Hi Team, I was performing an exercise using the telemetry sample code in iothub_client where i have made the following changes and the observed behavior is as follows. I have a query regarding this observation.

I want to understand who/where is it decided to wait for 30mins/ 45mins based on the keep alive timeout. And what is the max time out that is allowed before the system disconnects from iothub when there is no network activity.

thanks Srinikethan

danewalton commented 2 years ago

Hi @Srini-Zoetis We have documentation here which hopefully will clarify how this behavior works. Please let us know if this helps.

ericwolz commented 2 years ago

The default keepalive is configured for optimal performance on your platform. Is there a reason you need to modify it from the default?

danewalton commented 2 years ago

Closing this issue for now due to inactivity. If you would like it reopened, please let us know. For any other questions, please open another Github issue.