aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-22 10:01:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-22 10:01:49 +0000
commitd323b3d816c84b83368de9b0c60f13b5a364139f (patch)
tree489717d648a74365c8dff850bc53b1ad776224c4 /src/main.c
parentb685b5672a89ebf417cbd438b258e36e58db3e92 (diff)
Set the retry delay variables after the option parsing, as bug report
#1187787 points out.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 4df0c6919..298456dc6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2940,10 +2940,9 @@ operate(struct Configurable *config, int argc, char *argv[])
int res = 0;
int i;
int up; /* upload file counter within a single upload glob */
- long retry_sleep_default = config->retry_delay?
- config->retry_delay*1000:RETRY_SLEEP_DEFAULT; /* ms */
+ long retry_sleep_default;
long retry_numretries;
- long retry_sleep = retry_sleep_default;
+ long retry_sleep;
long response;
struct timeval retrystart;
@@ -3050,6 +3049,10 @@ operate(struct Configurable *config, int argc, char *argv[])
}
}
+ retry_sleep_default = config->retry_delay?
+ config->retry_delay*1000:RETRY_SLEEP_DEFAULT; /* ms */
+ retry_sleep = retry_sleep_default;
+
if((!config->url_list || !config->url_list->url) && !config->list_engines) {
clean_getout(config);
helpf("no URL specified!\n");