Further optimize new web browser

This commit is contained in:
JustArchi 2015-12-01 01:34:05 +01:00
parent 6b3cf5e788
commit c8fc25111e

View file

@ -41,6 +41,10 @@ namespace ArchiSteamFarm {
internal static void Init() {
HttpClient.DefaultRequestHeaders.UserAgent.ParseAdd("ArchiSteamFarm/" + Program.Version);
// Don't limit maximum number of allowed concurrent connections
// It's application's responsibility to handle that stuff
ServicePointManager.DefaultConnectionLimit = int.MaxValue;
}
private static async Task<HttpResponseMessage> UrlRequest(string request, HttpMethod httpMethod, Dictionary<string, string> data = null, Dictionary<string, string> cookies = null, string referer = null) {