GoogleCloudPlatform / iot-device-sdk-embedded-c

Cloud IoT Device SDK for Connectivity to IoT Core.
Other
247 stars 83 forks source link

Socket connect does not appear to be affected by "connection_timeout". #35

Open bryan-hunt opened 5 years ago

bryan-hunt commented 5 years ago

It would appear that the value for connection_timeout only affects the MQTT client connect and not socket connect so if the socket fails to connect the event dispatcher continuously check select (which times out given the default of 4 seconds) but fails to do anything with returned IOTC_BSP_IO_NET_STATE_TIMEOUT code.

https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/5d17e9907cae5ce0f459f85d4289aec50c351e69/src/libiotc/event_loop/iotc_event_loop.c#L243-L252

Also of note is that defining IOTC_DEUBG_OUTPUT_EVENT_SYSTEM cause compile errors (it appears several of the structures have changed their definitions).