IoTHubClient_LL_DoWork() blocks for 5 seconds the execution while wifi nic is down
-using LL APIs;
-using the retry policy IOTHUBCLIENTRETRY_INTERVAL;
-device is being connected to the azure iot hub by a wifi NIC, then the NIC is disabled on the board;
When the device network interface is disconnected (i.e. wifi nic is disabled) the IoTHubClientLLDoWork() call blocks execution for 5 seconds each time is being called.
The reason should be that the getaddinfo() underlying call is blocking, this is in the log traces each five seconds indeed:
/git/c-utility/adapters/socketioberkeley.c Func:socketioopen Line:627 Failure: getaddrinfo failure -3.
Hi there, this would be a good issue to raise on our GitHub site: https://github.com/Azure/azure-iot-sdk-c. Thanks!