Skip to content

HttpClient creates Quic threads even if HTTP/3 is not in use #74629

Closed

Description

@wfurt
  1. Create simple console app with HTTP and run simple http1.1 request on Windows 11 or Server 22.
  2. look at application threads.

image

Application crates 2x threads per core even if HTTP/3 and Quic are not in used. This was originally reported on legacy system with 54 cores. That will create 100+ threads ... for nothing.

We should figure out how to make Quic.IsSupported cheap and defer thread creation until needed.
This will impact legacy app that has no clue tor intention to use Quic or HTTP/3.

Activity

  1. added
    tenet-compatibility
    on Aug 26, 2022
  2. ghost added
    untriaged
    on Aug 26, 2022
  3. rzikm commented on Aug 26, 2022

    @rzikm
    Member

    I think we can simply try opening and closing the API registration (that should deallocate the internal MsQuic threadpool), and then lazily reopen it when we actually intend to use it.

  4. added this to the 7.0.0 milestone on Aug 28, 2022
  5. ghost removed
    untriaged
    on Aug 28, 2022
  6. self-assigned this
    on Aug 29, 2022
  7. ghost added
    in-pr
    on Aug 29, 2022
  8. karelz commented on Aug 30, 2022

    @karelz
    Member

    Triage: This contributes to 1MB per core Working set regression on Windows 2022/Win11+ and on Linux when msquic is present.
    We should fix it in 7.0.

  9. added
    tenet-performance
    and removed
    tenet-compatibility
    on Aug 30, 2022
  10. 35 remaining items

  11. karelz commented on Sep 13, 2022

    @karelz
    Member

    Open questions:

  12. ghost removed
    in-pr
    on Sep 23, 2022
  13. karelz commented on Sep 23, 2022

    @karelz
    Member

    Fixed in main (8.0) in PRs #75163 and #75441 and in 7.0 (GA) in PR #75521 and in 6.0.15 in PR #80785.

  14. ghost locked as resolved and limited conversation to collaborators on Oct 23, 2022
  15. karelz commented on Jan 20, 2023

    @karelz
    Member

    We have customers impacted on 6.0 as well - only via Kestrel. Reopening for 6.0.x backport.

  16. reopened this on Jan 20, 2023
  17. modified the milestones: 7.0.0, 6.0.x on Jan 20, 2023
  18. assigned and unassigned on Jan 20, 2023
  19. ManickaP commented on Feb 15, 2023

    @ManickaP
    Member

    Closing as #80785 is merged

  20. karelz commented on Feb 21, 2023

    @karelz
    Member

    Fixed also in 6.0.15 in PR #80785 -- see #74629 (comment) for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions