summaryrefslogtreecommitdiff
path: root/src/tool_operate.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-09-05 17:44:24 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-09-06 00:00:10 +0200
commit363a88ac9da7e4ee6e78c03f020d2a263d191886 (patch)
treef2bd3fa912fe772503c172058ef5e5b86f7784b9 /src/tool_operate.h
parente4e725f8355b925eae7ae6ba1ead4fe17b5650f3 (diff)
downloadcurl-363a88ac9da7e4ee6e78c03f020d2a263d191886.tar.gz
curl: retry delays in parallel mode no longer sleeps blocking
The previous sleep for retries would block all other concurrent transfers. Starting now, the retry will instead be properly marked to not get restarted until after the delay time but other transfers can still continue in the mean time. Closes #5917
Diffstat (limited to 'src/tool_operate.h')
-rw-r--r--src/tool_operate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tool_operate.h b/src/tool_operate.h
index 0fa5adee5..42b1861d0 100644
--- a/src/tool_operate.h
+++ b/src/tool_operate.h
@@ -54,6 +54,9 @@ struct per_transfer {
char errorbuffer[CURL_ERROR_SIZE];
bool added; /* set TRUE when added to the multi handle */
+ time_t startat; /* when doing parallel transfers, this is a retry transfer
+ that has been set to sleep until this time before it
+ should get started (again) */
/* for parallel progress bar */
curl_off_t dltotal;