-
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
HttpClient.SendAsync Throws Two Exceptions When QUIC Is Not Supported #49918
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsDescriptionOn first use of
Given that this is a light-up scenario, and in most cases, QUIC won't be supported, we should change this behavior to not throw, but instead, to detect the existence of the native component (e.g. msquic.dll) before attempting to load it.
|
@brianrob: Did you have I'm trying to understand this since me and @CarnaViire are taking over H3 and QUIC so that we do not make the same mistake in the future. |
Right, per @stephentoub's comment, I did not have the switch on, but it defaults to true. The scenario where I ran into this is running I would describe the priority as not urgent, but something that we should fix in .NET 6, as this is extra overhead in any app using |
I completely missed the PR that changed that and thought it was disabled by default. Thanks for pointing that out. And thanks for the additional info and use case. |
Thank you @stephentoub! |
On first use of
HttpClient
, there is a check to see if QUIC is supported. On any machine where QUIC hasn't been setup, this code throws two exceptions - a DLLNotFoundException, which is caught, and translated into a NotSupportedException. The NotSupportedException is also caught and translated intoIsSupported = true
. This is the stack where this happens:Given that this is a light-up scenario, and in most cases, QUIC won't be supported, we should change this behavior to not throw, but instead, to detect the existence of the native component (e.g. msquic.dll) before attempting to load it.
The text was updated successfully, but these errors were encountered: