Skip to content

Conversation

@github-actions
Copy link
Contributor

Backport 601fea1 from #4663

* Fix check for agressive connectionlimit

In dotnet/runtime#22366 we found that if
HttpClient is using the curl handler it will lead to TCP connections
bleeding. Our DefaultConnectionLimit is very restrictive if this is
true. Our check however is too lenient and will default to true always
on .NET core since netcoreapp still ships with CurlHandler as recent as
`3.1.x`

* remove unused reference

* Detect if CurlHandler exists

This commit updates the implementation of determining if
a conservative default connection limit should be set by also checking
if CurlHandler exists when UseSocketsHttpHandler exists and is
disabled.

Co-authored-by: Russ Cam <russ.cam@forloop.co.uk>
@Mpdreamz Mpdreamz merged commit 3161ce5 into 7.7 Apr 23, 2020
@Mpdreamz Mpdreamz deleted the backport-4663-to-7.7 branch April 23, 2020 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants