Commit 3161ce5
[Backport 7.7] Fix check for agressive connectionlimit (#4667)
* 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>
Co-authored-by: Martijn Laarman <Mpdreamz@gmail.com>
Co-authored-by: Russ Cam <russ.cam@forloop.co.uk>1 parent d84c0c6 commit 3161ce5
File tree
1 file changed
+35
-4
lines changed- src/Elasticsearch.Net/Configuration
1 file changed
+35
-4
lines changedLines changed: 35 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
28 | 38 | | |
29 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
30 | 59 | | |
| 60 | + | |
| 61 | + | |
31 | 62 | | |
32 | 63 | | |
33 | 64 | | |
| |||
52 | 83 | | |
53 | 84 | | |
54 | 85 | | |
55 | | - | |
| 86 | + | |
56 | 87 | | |
57 | 88 | | |
58 | 89 | | |
| |||
0 commit comments