"<a href="#--rrdpenabled">enabled</a>": true,
"<a href="#--rrdppriority">priority</a>": 50,
"retry": {
- "<a href="#--rrdpretrycount">count</a>": 1,
- "<a href="#--rrdpretryinterval">interval</a>": 3
+ "<a href="#--rrdpretrycount">count</a>": 2,
+ "<a href="#--rrdpretryinterval">interval</a>": 5
}
},
"<a href="#--rsyncpriority">priority</a>": 50,
"<a href="#--rsyncstrategy">strategy</a>": "root",
"retry": {
- "<a href="#--rsyncretrycount">count</a>": 1,
- "<a href="#--rsyncretryinterval">interval</a>": 3
+ "<a href="#--rsyncretrycount">count</a>": 2,
+ "<a href="#--rsyncretryinterval">interval</a>": 5
},
"<a href="#rsyncprogram">program</a>": "rsync",
"<a href="#rsyncarguments-recursive">arguments-recursive</a>": [
- **Type:** Integer
- **Availability:** `argv` and JSON
-- **Default:** 1
+- **Default:** 2
- **Range:** 0--[`UINT_MAX`](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html)
Maximum number of retries whenever there's an error fetching RRDP files.
A value of **0** means **no retries**.
+Whenever is necessary to fetch an RRDP file, the validator will try the download at least once. If there was an error fetching the file, the validator will retry at most `--rrdp.retry.count` times to fetch the file, waiting [`--rrdp.retry.interval`](#--rrdpretryinterval) seconds between each retry.
+
### `--rrdp.retry.interval`
- **Type:** Integer
- **Availability:** `argv` and JSON
-- **Default:** 3
+- **Default:** 5
- **Range:** 0--[`UINT_MAX`](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html)
Period of time (in seconds) to wait between each retry to fetch an RRDP file.
- **Type:** Integer
- **Availability:** `argv` and JSON
-- **Default:** 1
+- **Default:** 2
- **Range:** 0--[`UINT_MAX`](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html)
Maximum number of retries whenever there's an error executing an RSYNC.
A value of **0** means **no retries**.
+Whenever is necessary to execute an RSYNC, the validator will try at least one time the execution. If there was an error executing the RSYNC, the validator will retry it at most `--rrdp.retry.count` times, waiting [`--rsync.retry.interval`](#--rsyncretryinterval) seconds between each retry.
+
### `--rsync.retry.interval`
- **Type:** Integer
- **Availability:** `argv` and JSON
-- **Default:** 3
+- **Default:** 5
- **Range:** 0--[`UINT_MAX`](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html)
Period of time (in seconds) to wait between each retry to execute an RSYNC.
"enabled": true,
"priority": 50,
"retry": {
- "count": 1,
- "interval": 3
+ "count": 2,
+ "interval": 5
}
},
"rsync": {
"priority": 50,
"strategy": "root",
"retry": {
- "count": 1,
- "interval": 3
+ "count": 2,
+ "interval": 5
},
"program": "rsync",
"arguments-recursive": [
.P
A value of \fI0\fR means no retries.
.P
-By default, the value is \fI1\fR.
+Whenever is necessary to fetch an RRDP file, the validator will try the
+download at least once. If there was an error fetching the file, the validator
+will retry at most \fI--rrdp.retry.count\fR times to fetch the file, waiting
+\fI--rrdp.retry.interval\fR seconds between each retry.
+.P
+By default, the value is \fI2\fR.
.RE
.P
Period (in seconds) to wait between retries after an error ocurred fetching
RRDP files.
.P
-By default, the value is \fI3\fR.
+By default, the value is \fI5\fR.
.RE
.P
.P
A value of \fI0\fR means no retries.
.P
-By default, the value is \fI1\fR.
+Whenever is necessary to execute an RSYNC, the validator will try the execution
+at least once. If there was an error executing the RSYNC, the validator will
+retry it at most \fI--rrdp.retry.count\fR times, waiting
+\fI--rsync.retry.interval\fR seconds between each retry.
+.P
+By default, the value is \fI2\fR.
.RE
.P
.RS 4
Period (in seconds) to wait between retries after an RSYNC error ocurred.
.P
-By default, the value is \fI3\fR.
+By default, the value is \fI5\fR.
.RE
.P
},
"rrdp": {
"enabled": true,
- "priority": 50
+ "priority": 50,
+ "retry": {
+ "count": 2,
+ "interval": 5
+ }
},
"rsync": {
"enabled": true,
"priority": 50,
"strategy": "root",
+ "retry": {
+ "count": 2,
+ "interval": 5
+ },
"program": "rsync",
"arguments-recursive": [
"--recursive",
rpki_config.rsync.enabled = true;
rpki_config.rsync.priority = 50;
rpki_config.rsync.strategy = RSYNC_ROOT;
- rpki_config.rsync.retry.count = 1;
- rpki_config.rsync.retry.interval = 3;
+ rpki_config.rsync.retry.count = 2;
+ rpki_config.rsync.retry.interval = 5;
rpki_config.rsync.program = strdup("rsync");
if (rpki_config.rsync.program == NULL) {
error = pr_enomem();
rpki_config.rrdp.enabled = true;
rpki_config.rrdp.priority = 50;
- rpki_config.rrdp.retry.count = 1;
- rpki_config.rrdp.retry.interval = 3;
+ rpki_config.rrdp.retry.count = 2;
+ rpki_config.rrdp.retry.interval = 5;
rpki_config.http.user_agent = strdup(PACKAGE_NAME "/" PACKAGE_VERSION);
if (rpki_config.http.user_agent == NULL) {
int
vrps_update(bool *changed)
{
- time_t start, finish, exec_time;
+ time_t start, finish;
+ long int exec_time;
serial_t serial;
int error;