chirpstack-network-server icon indicating copy to clipboard operation
chirpstack-network-server copied to clipboard

Limit Azure IoT Hub downlink retries

Open jburhenn opened this issue 1 year ago • 2 comments

If the publishCommand function for Azure IoT Hub gets an error when sending a cloud-to-device message it retries forever so it may never finish. This change adds a retry limit to prevent that. It also adds a test case for testing Azure IoT Hub downlinks.

jburhenn avatar May 18 '23 23:05 jburhenn

@brocaar Another thing we observed is that when the limit is reached for a particular device, IoT Hub returns the error below and endlessly retries connecting to IoT Hub even though is not a "connection" error. For now this is more of a immediate hotfix, lookout for another PR later on that actually checks for Device Queue Limit. Screenshot 2023-05-17 at 11 56 15 AM

asanchezdelc avatar May 19 '23 17:05 asanchezdelc

Added a change for the queue limit exceeded error. Now it only recreates the sender link instead of doing a full reconnection since that error doesn't require a reconnect.

jburhenn avatar May 19 '23 22:05 jburhenn