From 962c2527bae3a13d21a0ae08e1f880b3a73bb931 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sat, 27 Aug 2022 13:54:42 +0800 Subject: [PATCH] DefaultConnectionLimit --- src/N_m3u8DL-RE/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/N_m3u8DL-RE/Program.cs b/src/N_m3u8DL-RE/Program.cs index b7403ad..ea19ce4 100644 --- a/src/N_m3u8DL-RE/Program.cs +++ b/src/N_m3u8DL-RE/Program.cs @@ -13,6 +13,7 @@ using N_m3u8DL_RE.Config; using N_m3u8DL_RE.Util; using N_m3u8DL_RE.DownloadManager; using N_m3u8DL_RE.CommandLine; +using System.Net; namespace N_m3u8DL_RE { @@ -20,6 +21,7 @@ namespace N_m3u8DL_RE { static async Task Main(string[] args) { + ServicePointManager.DefaultConnectionLimit = 1024; try { Console.CursorVisible = true; } catch { } string loc = "en-US"; string currLoc = Thread.CurrentThread.CurrentUICulture.Name;