From 7c13fde5a10ee6a206f33f28594724adb68cdaa1 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Mon, 27 Mar 2017 04:13:35 +0200 Subject: [PATCH] Lower default limit of conc connections --- ArchiSteamFarm/WebBrowser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArchiSteamFarm/WebBrowser.cs b/ArchiSteamFarm/WebBrowser.cs index e02f1b5d7..87d02ae64 100644 --- a/ArchiSteamFarm/WebBrowser.cs +++ b/ArchiSteamFarm/WebBrowser.cs @@ -37,7 +37,7 @@ namespace ArchiSteamFarm { internal sealed class WebBrowser { internal const byte MaxRetries = 5; // Defines maximum number of retries, UrlRequest() does not handle retry by itself (it's app responsibility) - private const byte MaxConnections = 10; // Defines maximum number of connections per ServicePoint. Be careful, as it also defines maximum number of sockets in CLOSE_WAIT state + private const byte MaxConnections = ServicePointManager.DefaultNonPersistentConnectionLimit; // Defines maximum number of connections per ServicePoint. Be careful, as it also defines maximum number of sockets in CLOSE_WAIT state private const byte MaxIdleTime = 15; // In seconds, how long socket is allowed to stay in CLOSE_WAIT state after there are no connections to it internal readonly CookieContainer CookieContainer = new CookieContainer();