-
Hello guys, I'm using hawkbit sample and a custom board based on STM32F7. There are no problems with network connectivity. Funny thing is that net dns query returns the answer without any hiccups in the very same time when getaddrinfo() fails. Unfortunately the sample requires mcuboot thus I cannot (or just don't know how) run the sample using the debugger. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
My bad. It's rather DNS_EAI_FAIL and not the generic EINTR. Still tracing down. |
Beta Was this translation helpful? Give feedback.
-
If someone is hitting the same behaviour is seems that it's due to the bug in hawkbit module. struct addrinfo hints inside start_http_client() is being used uninitialized and the ai_flags are set randomly sometimes triggering error condition during dns resolving steps. memset(&hints, 0, sizeof(struct addrinfo)) seems to alleviate that issue. |
Beta Was this translation helpful? Give feedback.
If someone is hitting the same behaviour is seems that it's due to the bug in hawkbit module. struct addrinfo hints inside start_http_client() is being used uninitialized and the ai_flags are set randomly sometimes triggering error condition during dns resolving steps. memset(&hints, 0, sizeof(struct addrinfo)) seems to alleviate that issue.