Skip to content

getaddrinfo() - returns EINTR #48946

Answered by gkujawsk
gkujawsk asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gkujawsk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant