From 2a814091518131274d8484f08b469cbea9d7738e Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 29 Jan 2024 07:18:32 -0600 Subject: return proper message when exceeding queued limits --- src/slskd/Application.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index b2f075b4..b105cb56 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -585,7 +585,10 @@ namespace slskd if (over.Files || over.Megabytes) { Log.Information("Rejected enqueue request for user {Username}: Queued limits exceeded", username); - throw new DownloadEnqueueException($"Too many {(over.Files ? "files" : "megabytes")} queued"); + + // note: return exactly 'Too many files' or 'Too many megabytes' to ensure interop with other clients. + // these messages are retryable, while anything else is not + throw new DownloadEnqueueException($"Too many {(over.Files ? "files" : "megabytes")}"); } } -- cgit v1.2.3