]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
parallel-max: bump the max value to 65535
authorDaniel Stenberg <daniel@haxx.se>
Mon, 28 Jul 2025 21:46:01 +0000 (23:46 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 29 Jul 2025 07:11:19 +0000 (09:11 +0200)
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
src/tool_main.h

index 6b3684b8f2fa40b4b2806f761b98d3a846ddda5c..fc5470eb02969ea36b1e81ecea83654c681a9577 100644 (file)
@@ -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.
index 95d603f4a056281832b2661dd4b2e5b4d2a39874..1e32ee7f8d2ce69f1dcdc12bd9103bd3083503e9 100644 (file)
@@ -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 */