Optimize proxy scheduler throughput and fairness

This commit is contained in:
Sucukdeluxe
2026-08-31 14:55:26 +02:00
parent ecfc630e1e
commit 61e10034ba
12 changed files with 403 additions and 58 deletions
+9 -5
View File
@@ -568,7 +568,7 @@ describe("settings storage", () => {
expect(backup).not.toContain(value);
});
it("normalizes invalid enum and numeric values", () => {
it("normalizes invalid enum and numeric values", () => {
const normalized = normalizeSettings({
...defaultSettings(),
providerPrimary: "invalid-provider" as unknown as AppSettings["providerPrimary"],
@@ -610,10 +610,14 @@ describe("settings storage", () => {
expect(normalized.outputDir).toBe(defaultSettings().outputDir);
expect(normalized.extractDir).toBe(defaultSettings().extractDir);
expect(normalized.mkvLibraryDir).toBe(defaultSettings().mkvLibraryDir);
expect(normalized.updateRepo).toBe(defaultSettings().updateRepo);
});
it("migrates the previous private update repository to the public release repository", () => {
expect(normalized.updateRepo).toBe(defaultSettings().updateRepo);
});
it("uses 20 total proxy connections as the default for new settings", () => {
expect(defaultSettings().proxyConnectionsPerDownload).toBe(20);
});
it("migrates the previous private update repository to the public release repository", () => {
for (const updateRepo of [
"legacy-owner/real-debrid-downloader",
"legacy-owner/multi-debrid-downloader",