From: Daniel Stenberg Date: Mon, 28 Jul 2025 21:46:01 +0000 (+0200) Subject: parallel-max: bump the max value to 65535 X-Git-Tag: curl-8_16_0~339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7e6c78bfa3e4edcb3c0dcd105d2edc73d9e8b09;p=thirdparty%2Fcurl.git 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 --- 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 */