-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client Get operation stalls in getaddrinfo when network is down #1601
Comments
@TheMostDiligent thanks for the feedback. As far as I know, |
I am not very profound in HTTP handling. However, I tried to research the subject a bit and apparently there is an alternative function: getaddrinfo_a that supports asynchronous wait mode ( |
It looks like only Linux supports it... How could it be possible to do the same in Windows and MacOS? |
It does seem so. On Mac, there is DNSServiceGetAddrInfo that allows async wait. This article describes it in detail. Looks like it is quite a hassle to implement this... On Windows, I actually did not see that problem. |
It seems like we may use In any case, supporting this feature on all three platforms and ensuring they work correctly will not likely be an easy task for me. So please don't expect me to implement it in the near future. A pull request is always welcome! :) |
This stackoverflow post is helpful to write thread timeout code. |
Hello!
We are seeing the following issue when the network is completely unavailable: the Get operations stalls in the getaddrinfo for about 30 seconds. We set the connection timeout and read timeout, but they don't have any effect.
Is it possible that this logic also respects the connection timeout?
The text was updated successfully, but these errors were encountered: