-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
System.Net.Quic is leaking UnobservedTaskExceptions #80111
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsI have a console app with HttpClient that continuously sends requests to a localhost Kestrel instance.
|
I can confirm this with entirely different project.
The application seems to work fine however. |
* Ignore QUIC exceptions See dotnet/runtime#80111 * Update madness * No i jaki jest twój problem ja się pytam
Triage: we should fix this in 8.0. |
Just wanted to confirm given #80111 (comment), was this moved to 9.0.0 intentionally? |
Yes, it was moved. Unfortunately, we didn't have a chance to look into it. And as this doesn't affect application behavior, it got lower priority. It's annoying, but not detrimental. |
Looks like this is already fixed by some changes, can't repro it on main. |
I can consistently repro on 8, but wasn't able to on 9.0 anymore. |
Doing a simple HTTP test run
while watching for unobserved exceptions [Fact]
public async Task WatchForUnobserved()
{
bool seenUnobservedExceptions = false;
EventHandler<UnobservedTaskExceptionEventArgs> eventHandler = (_, e) =>
{
_output.WriteLine(e.Exception.ToString());
seenUnobservedExceptions = true;
};
TaskScheduler.UnobservedTaskException += eventHandler;
await Task.Delay(10_000);
TaskScheduler.UnobservedTaskException -= eventHandler;
Assert.False(seenUnobservedExceptions);
} I'm still seeing 100s of such unobserved exceptions (mainly from Quic):
|
I have a console app with HttpClient that continuously sends requests to a localhost Kestrel instance.
If I randomly shut down and restart the server while HttpClient is making requests, I can see sporadic
UnobservedTaskException
s coming fromSystem.Net.Quic
.The text was updated successfully, but these errors were encountered: