xref: /curl/docs/cmdline-opts/retry-max-time.md (revision 2abfc759)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: retry-max-time
5Arg: <seconds>
6Help: Retry only within this period
7Added: 7.12.3
8Category: curl timeout
9Multi: single
10See-also:
11  - retry
12Example:
13  - --retry-max-time 30 --retry 10 $URL
14---
15
16# `--retry-max-time`
17
18The retry timer is reset before the first transfer attempt. Retries are done
19as usual (see --retry) as long as the timer has not reached this given
20limit. Notice that if the timer has not reached the limit, the request is
21made and while performing, it may take longer than this given time period. To
22limit a single request's maximum time, use --max-time. Set this option to zero
23to not timeout retries.
24