Raise proxy connection limit to 80

This commit is contained in:
Sucukdeluxe
2026-09-01 15:31:13 +02:00
parent 0896720bc0
commit 78876869f7
9 changed files with 19 additions and 11 deletions
+3 -3
View File
@@ -129,10 +129,10 @@ async function createTempDirectory(): Promise<string> {
}
describe("proxy segmented download", () => {
it("uses 32 connections by default and clamps the configurable maximum to 40", () => {
it("uses 32 connections by default and clamps the configurable maximum to 80", () => {
expect(normalizeProxyConnectionLimit(0)).toBe(32);
expect(normalizeProxyConnectionLimit(40)).toBe(40);
expect(normalizeProxyConnectionLimit(999)).toBe(40);
expect(normalizeProxyConnectionLimit(80)).toBe(80);
expect(normalizeProxyConnectionLimit(999)).toBe(80);
expect(normalizeProxyConnectionLimit(1)).toBe(2);
});
+1 -1
View File
@@ -701,7 +701,7 @@ describe("settings views", () => {
label: "Proxy-Verbindungen insgesamt",
value: "16",
min: 2,
max: 40,
max: 80,
help: expect.stringContaining("zusammen höchstens 16 Segmentverbindungen")
}));
});
+1 -1
View File
@@ -620,7 +620,7 @@ describe("settings storage", () => {
expect(normalized.proxyDownloadEnabled).toBe(true);
expect(normalized.proxyListPath).toBe("C:\\proxies.txt");
expect(normalized.proxyApiProxyIndex).toBe(100000);
expect(normalized.proxyConnectionsPerDownload).toBe(40);
expect(normalized.proxyConnectionsPerDownload).toBe(80);
expect(normalized.outputDir).toBe(defaultSettings().outputDir);
expect(normalized.extractDir).toBe(defaultSettings().extractDir);
expect(normalized.mkvLibraryDir).toBe(defaultSettings().mkvLibraryDir);