Uh oh!
There was an error while loading. Please reload this page.
Track all HttpConnectionPoolManager instances in a global list - #66801
Track all HttpConnectionPoolManager instances in a global list#66801MihaZupan wants to merge 5 commits into
Conversation
The manager will be disposed twice if we are using a redirect handler
ghost
commented
Mar 17, 2022
Tagging subscribers to this area: @dotnet/ncl Issue DetailsI was looking at what events & counters may be useful to add to connection pooling (#66605 (comment)). For some things, it would be useful to have a reference to every
This PR adds such a collection Cases where this approach may have a higher overhead:
Opening as a draft to gather feedback on whether we think such a change is a horrible idea.
|
MihaZupan
commented
Mar 18, 2022
/azp run runtime-libraries-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
I was looking at what events & counters may be useful to add to connection pooling (#66605 (comment)).
For some things, it would be useful to have a reference to every
HttpConnectionPoolManagerin the process.Having such a list would make it possible to improve a few things:
http11-requests-in-queueNetworkChangenotificationshttp11-connections-current-totalwhen telemetry is disabled. As a result, you will see wrong values if you turn telemetry on later on during the process's lifetime.This PR adds such a collection
HttpConnectionPoolManager.AllManagers, uses a global timer for cleanup & heartbeats and a singleNetworkChangecallback.Cases where this approach may have a higher overhead:
SocketsHttpHandlerinstances that are completely idle (without a single pool)Opening as a draft to gather feedback on whether we think such a change is a horrible idea.