xref: /curl/docs/cmdline-opts/speed-time.md (revision 2abfc759)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: speed-time
5Short: y
6Arg: <seconds>
7Help: Trigger 'speed-limit' abort after this time
8Category: connection timeout
9Added: 4.7
10Multi: single
11See-also:
12  - speed-limit
13  - limit-rate
14Example:
15  - --speed-limit 300 --speed-time 10 $URL
16---
17
18# `--speed-time`
19
20If a transfer runs slower than speed-limit bytes per second during a
21speed-time period, the transfer is aborted. If speed-time is used, the default
22speed-limit is 1 unless set with --speed-limit.
23
24This option controls transfers (in both directions) but does not affect slow
25connects etc. If this is a concern for you, try the --connect-timeout option.
26