Set PooledConnectionLifetime to 10 minutes

Setting PooledConnectinLifetime to a defined number will ensure we don't run into DNS refresh issues
This commit is contained in:
Qstick 2022-09-18 21:45:10 -05:00
parent 7fa0a2b33c
commit 59e5b5bd52

View file

@ -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