xref: /aosp_15_r20/external/curl/docs/cmdline-opts/speed-time.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: speed-time
5*6236dae4SAndroid Build Coastguard WorkerShort: y
6*6236dae4SAndroid Build Coastguard WorkerArg: <seconds>
7*6236dae4SAndroid Build Coastguard WorkerHelp: Trigger 'speed-limit' abort after this time
8*6236dae4SAndroid Build Coastguard WorkerCategory: connection timeout
9*6236dae4SAndroid Build Coastguard WorkerAdded: 4.7
10*6236dae4SAndroid Build Coastguard WorkerMulti: single
11*6236dae4SAndroid Build Coastguard WorkerSee-also:
12*6236dae4SAndroid Build Coastguard Worker  - speed-limit
13*6236dae4SAndroid Build Coastguard Worker  - limit-rate
14*6236dae4SAndroid Build Coastguard WorkerExample:
15*6236dae4SAndroid Build Coastguard Worker  - --speed-limit 300 --speed-time 10 $URL
16*6236dae4SAndroid Build Coastguard Worker---
17*6236dae4SAndroid Build Coastguard Worker
18*6236dae4SAndroid Build Coastguard Worker# `--speed-time`
19*6236dae4SAndroid Build Coastguard Worker
20*6236dae4SAndroid Build Coastguard WorkerIf a transfer runs slower than speed-limit bytes per second during a
21*6236dae4SAndroid Build Coastguard Workerspeed-time period, the transfer is aborted. If speed-time is used, the default
22*6236dae4SAndroid Build Coastguard Workerspeed-limit is 1 unless set with --speed-limit.
23*6236dae4SAndroid Build Coastguard Worker
24*6236dae4SAndroid Build Coastguard WorkerThis option controls transfers (in both directions) but does not affect slow
25*6236dae4SAndroid Build Coastguard Workerconnects etc. If this is a concern for you, try the --connect-timeout option.
26