-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[HttpRequestError] Detect NameResolutionError more reliably #89096
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsFollow up on https://github.com/dotnet/runtime/pull/88974/files#r1265749282:
|
When a SocketException is thrown by I see two ways to deal with this:
|
The Linux man page of connect + EAGAIN actually says:
I'm not sure how common is the case with "insufficient entries in the routing cache", but my gut feel is that it's much less likely than getting EAGAIN from |
We should check it but lack if Kernel resources should be rare and when that happen the system is in much bigger troubles IMHO. In future, we may add separate code for NameResolution failures IMHO but in mean time I feel mapping that into HttpRequestError should be fine. We should verify the completeness as there could at least two types of failures: The resolver asked but did not get answer on time. And then it asked and there was authoritative answer that given host does not exist. |
I'm not sure I follow what do you mean by this. I'm suggesting to map both Are you suggesting there might be other cases we are missing? |
that should be fine. That generally covers two cases I had in mind. |
Follow up on https://github.com/dotnet/runtime/pull/88974/files#r1265749282:
https://github.com/antonfirsov/runtime/blob/b54e8c72cb63de3549ae4bff268d88daa628404c/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs#L4372-L4374
The text was updated successfully, but these errors were encountered: