Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Http2's SendPingAsync may leak UnobservedTaskExceptions #64450

Closed

Description

@MihaZupan

(based on code inspection)

The SendPingAsync call that we do as part of the ConnectionPoolManager's heartbeat isn't awaited and so any exceptions from it would bubble up as UnobservedTaskExceptions.

We should consume the task with LogExceptions(SendPingAsync(pingPayload)) as we do when sending out pings normally.

Should be an easy fix - marking as up for grabs.

Activity

  1. added
    help wanted
    on Jan 28, 2022
  2. added this to the 7.0.0 milestone on Jan 28, 2022
  3. ghost added
    untriaged
    on Jan 28, 2022
  4. removed
    untriaged
    on Jan 28, 2022
  5. shubhanshu02 commented on Jan 29, 2022

    @shubhanshu02
    Contributor

    Hi @MihaZupan, can I take this up? If I understood correct, all that's needed to do is to wrap the function SendPingAsync with LogExceptions so that the exceptions (if occurred) are caught and logged?

  6. MihaZupan commented on Jan 29, 2022

    @MihaZupan
    MemberAuthor

    That's right. I'll assign the issue to you :)

  7. ghost added
    in-pr
    on Jan 29, 2022
  8. shubhanshu02 commented on Jan 29, 2022

    @shubhanshu02
    Contributor

    Thanks, I have put up a PR regarding this.

  9. ghost removed
    in-pr
    on Jan 30, 2022
  10. added a commit that references this issue on Jan 30, 2022
    ce15dc7
  11. ghost locked as resolved and limited conversation to collaborators on Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Net.Httpbughelp wanted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions