-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
QuicConnection.ConnectAsync
raises SocketException
when host not found
#78751
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsDescriptionThe Reproduction Steps
Expected behaviorA Actual behaviorIt raises a Regression?No response Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
We have several places where we don't raise Either way, we have several loosely related issue to exception types and their wrapping. We should take all this feedback and come up with a comprehensive solution to this. Triage: this should be settled in 8.0. cc: @rzikm |
It seems like we don't document what |
Just for the record, that seems to be a pervasive issue with all the QUIC API documentation, not just this particular method. |
Note that we shouldn't document stored (async) exceptions in the exception section of the API docs - dotnet/dotnet-api-docs#7840 (comment). The fact that we do it for some of the networking API docs is a violation of general BCL API doc practices. |
That issue mentions that async APIs should point to sync APIs for the possible exceptions. There are no sync APIs for QUIC at this time, though? |
Yepp, just pointed it out in the discussion. |
Triage: this is part of bigger revision on exception in Quic. We should address this 8.0. Slightly related: #75184 |
We agreed to throw e.g. |
Closing this in lieu of #92943 |
Description
The
QuicConnect.ConnectAsync
method raises aSocketException(SocketErrorCode = HostNotFound)
if the resolution of aDnsEndPoint
set withQuicClientOptions.RemoteEndpoint
fails. I did expect aQuicException
with a suitable error code instead.Reproduction Steps
Expected behavior
A
QuicException
with suitableQuicError
.Actual behavior
It raises a
SocketException
.Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: