Skip to content
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

Fix UnobservedTaskException on Http2's SendPingAsync #64494

Merged
merged 1 commit into from
Jan 30, 2022

Conversation

shubhanshu02
Copy link
Contributor

Description

Fix #64450

Wrap the SendPingAsync function with LogExceptions in Http2Connection.cs
to avoid any exception here being caught as an UnobservedTaskException.

Wrap the SendPingAsync function with LogExceptions in Http2Connection.cs
to avoid any exception here being caught as an UnobservedTaskException.

Fix #64450

Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Jan 29, 2022
@ghost
Copy link

ghost commented Jan 29, 2022

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

Fix #64450

Wrap the SendPingAsync function with LogExceptions in Http2Connection.cs
to avoid any exception here being caught as an UnobservedTaskException.

Author: shubhanshu02
Assignees: -
Labels:

area-System.Net.Http

Milestone: -

Copy link
Member

@MihaZupan MihaZupan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MihaZupan MihaZupan merged commit ce15dc7 into dotnet:main Jan 30, 2022
@shubhanshu02 shubhanshu02 deleted the http2 branch January 30, 2022 06:53
@ghost ghost locked as resolved and limited conversation to collaborators Mar 1, 2022
@karelz karelz added this to the 7.0.0 milestone Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Http community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Http2's SendPingAsync may leak UnobservedTaskExceptions
4 participants