We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbd2f6a commit 23e74bfCopy full SHA for 23e74bf
StandardSocketsHttpHandler/Net/Http/SocketsHttpHandler/HttpConnectionPoolManager.cs
@@ -75,7 +75,7 @@ public HttpConnectionPoolManager(HttpConnectionSettings settings)
75
{
76
const int ScavengesPerIdle = 4;
77
const int MinScavengeSeconds = 1;
78
- TimeSpan timerPeriod = settings._pooledConnectionIdleTimeout / ScavengesPerIdle;
+ TimeSpan timerPeriod = new TimeSpan(settings._pooledConnectionIdleTimeout.Ticks / ScavengesPerIdle);
79
_cleanPoolTimeout = timerPeriod.TotalSeconds >= MinScavengeSeconds ? timerPeriod : TimeSpan.FromSeconds(MinScavengeSeconds);
80
}
81
0 commit comments