From a7e6c78bfa3e4edcb3c0dcd105d2edc73d9e8b09 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 28 Jul 2025 23:46:01 +0200 Subject: [PATCH] parallel-max: bump the max value to 65535 When doing HTTP/2 and HTTP/3, it is possible to achieve quite a massive parallelism so limiting this to 300 seems restrictive. With other protocols, going beyond 300-400 might not be recommended but curl does not have to enforce the limit. Closes #18068 --- docs/cmdline-opts/parallel-max.md | 2 +- src/tool_main.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cmdline-opts/parallel-max.md b/docs/cmdline-opts/parallel-max.md index 6b3684b8f2..fc5470eb02 100644 --- a/docs/cmdline-opts/parallel-max.md +++ b/docs/cmdline-opts/parallel-max.md @@ -19,4 +19,4 @@ Example: When asked to do parallel transfers, using --parallel, this option controls the maximum amount of transfers to do simultaneously. -The default is 50. 300 is the largest supported value. +The default is 50. 65535 is the largest supported value. diff --git a/src/tool_main.h b/src/tool_main.h index 95d603f4a0..1e32ee7f8d 100644 --- a/src/tool_main.h +++ b/src/tool_main.h @@ -30,7 +30,7 @@ #define RETRY_SLEEP_DEFAULT 1000L /* ms */ #define RETRY_SLEEP_MAX 600000L /* ms == 10 minutes */ -#define MAX_PARALLEL 300 /* conservative */ +#define MAX_PARALLEL 65535 #define PARALLEL_DEFAULT 50 #endif /* HEADER_CURL_TOOL_MAIN_H */