Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
misleading error message when using ADNS without internet connection #1062
When the broker tries to connect to a bridge when there is no internet, then error message is:
I added some debug code:
This means, that when there is no internet, adns gives back 3 addrinfo: 6 == TCP, 17 == UDP and 0 which is invalid.
I think the best solution would be to give SOCK_STREAM to getaddrinfo_a.
The reason this is not a pull request, is that i am not sure that stack allocated addrinfo is a good solution. It may need to be heap allocated.