xref: /aosp_15_r20/external/curl/docs/cmdline-opts/parallel-immediate.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: parallel-immediate
5*6236dae4SAndroid Build Coastguard WorkerHelp: Do not wait for multiplexing
6*6236dae4SAndroid Build Coastguard WorkerAdded: 7.68.0
7*6236dae4SAndroid Build Coastguard WorkerCategory: connection curl global
8*6236dae4SAndroid Build Coastguard WorkerMulti: boolean
9*6236dae4SAndroid Build Coastguard WorkerScope: global
10*6236dae4SAndroid Build Coastguard WorkerSee-also:
11*6236dae4SAndroid Build Coastguard Worker  - parallel
12*6236dae4SAndroid Build Coastguard Worker  - parallel-max
13*6236dae4SAndroid Build Coastguard WorkerExample:
14*6236dae4SAndroid Build Coastguard Worker  - --parallel-immediate -Z $URL -o file1 $URL -o file2
15*6236dae4SAndroid Build Coastguard Worker---
16*6236dae4SAndroid Build Coastguard Worker
17*6236dae4SAndroid Build Coastguard Worker# `--parallel-immediate`
18*6236dae4SAndroid Build Coastguard Worker
19*6236dae4SAndroid Build Coastguard WorkerWhen doing parallel transfers, this option instructs curl to prefer opening up
20*6236dae4SAndroid Build Coastguard Workermore connections in parallel at once rather than waiting to see if new
21*6236dae4SAndroid Build Coastguard Workertransfers can be added as multiplexed streams on another connection.
22*6236dae4SAndroid Build Coastguard Worker
23*6236dae4SAndroid Build Coastguard WorkerBy default, without this option set, curl prefers to wait a little and
24*6236dae4SAndroid Build Coastguard Workermultiplex new transfers over existing connections. It keeps the number of
25*6236dae4SAndroid Build Coastguard Workerconnections low at the expense of risking a slightly slower transfer startup.
26