mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
tool: simplify retrycheck()
- By making retry_sleep() a separate funtion that determines how long to wait until the next retry. - switch the retry timer to uint32 to make it uniform across platforms Closes #21279
This commit is contained in:
parent
008aa2b38f
commit
bb3670f929
4 changed files with 105 additions and 86 deletions
|
|
@ -2429,7 +2429,9 @@ static ParameterError opt_secs(struct OperationConfig *config,
|
|||
config->connecttimeout_ms = val;
|
||||
break;
|
||||
case C_RETRY_DELAY: /* --retry-delay */
|
||||
config->retry_delay_ms = val;
|
||||
if(val >= INT32_MAX)
|
||||
val = INT32_MAX;
|
||||
config->retry_delay_ms = (uint32_t)val;
|
||||
break;
|
||||
case C_RETRY_MAX_TIME: /* --retry-max-time */
|
||||
config->retry_maxtime_ms = val;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue