Skip to content

Commit

Permalink
Set PooledConnectionLifetime to 10 minutes
Browse files Browse the repository at this point in the history
Setting PooledConnectinLifetime to a defined number will ensure we don't run into DNS refresh issues
  • Loading branch information
Qstick committed Sep 19, 2022
1 parent 7fa0a2b commit 59e5b5b
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -174,6 +174,7 @@ protected virtual System.Net.Http.HttpClient CreateHttpClient(HttpProxySettings
PreAuthenticate = true,
MaxConnectionsPerServer = 12,
ConnectCallback = onConnect,
PooledConnectionLifetime = TimeSpan.FromMinutes(10),
SslOptions = new SslClientAuthenticationOptions
{
RemoteCertificateValidationCallback = _certificateValidationService.ShouldByPassValidationError
Expand Down

0 comments on commit 59e5b5b

Please sign in to comment.