cmdline-opts: expand the parallel explanations

Closes #13886
This commit is contained in:
Daniel Stenberg 2024-06-05 09:34:32 +02:00
parent 4a25812ee1
commit 6ceb23dc09
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
3 changed files with 22 additions and 9 deletions

View File

@ -16,7 +16,10 @@ Example:
# `--parallel-immediate`
When doing parallel transfers, this option instructs curl that it should
rather prefer opening up more connections in parallel at once rather than
waiting to see if new transfers can be added as multiplexed streams on another
connection.
When doing parallel transfers, this option instructs curl to prefer opening up
more connections in parallel at once rather than waiting to see if new
transfers can be added as multiplexed streams on another connection.
By default, without this option set, curl prefers to wait a little and
multiplex new transfers over existing connections. It keeps the number of
connections low at the expense of risking a slightly slower transfer startup.

View File

@ -7,6 +7,7 @@ Help: Maximum concurrency for parallel transfers
Added: 7.66.0
Category: connection curl
Multi: single
Scope: global
See-also:
- parallel
Example:
@ -18,7 +19,5 @@ Example:
When asked to do parallel transfers, using --parallel, this option controls
the maximum amount of transfers to do simultaneously.
This option is global and does not need to be specified for each use of
--next.
The default is 50. 300 is the largest supported value.
The default is 50.

View File

@ -11,11 +11,22 @@ Scope: global
See-also:
- next
- verbose
- parallel-max
- parallel-immediate
Example:
- --parallel $URL -o file1 $URL -o file2
---
# `--parallel`
Makes curl perform its transfers in parallel as compared to the regular serial
manner.
Makes curl perform all transfers in parallel as compared to the regular serial
manner. Parallel transfer means that curl runs up to N concurrent transfers
simultaneously and if there are more than N transfers to handle, it starts new
ones when earlier transfers finish.
With parallel transfers, the progress meter output is different than when
doing serial transfers, as it then displays the transfer status for multiple
transfers in a single line.
The maximum amount of concurrent transfers is set with --parallel-max and it
defaults to 50.