max_batch_up
Size limit for request payloads. [4000 bytes]
+ success_report_interval
+ If nonzero, report success periodically. Otherwise just
+ report it when we first have success. [3600 s]
+
http_retry
If a request fails, wait this long before considering it
"finished" - to limit rate of futile requests. [5 s]
#[client] pub max_requests_outstanding: u32,
#[client] pub max_batch_up: u32,
#[client] pub http_retry: Duration,
+ #[client] pub success_report_interval: Duration,
#[client] pub url: Uri,
#[client] pub vroutes: Vec<IpNet>,
ifname_client = hippo%d
ifname_server = shippo%d
max_clock_skew = 300
+success_report_interval = 3600
ipif = userv root ipif %{local},%{peer},%{mtu},slip,%{ifname} '%{rnets}'
let now = Instant::now();
if let Some(rep) = &self.last_report {
if now - rep.when < match rep.ok {
- Ok(()) => Duration::from_secs(3600), // xxx config?
+ Ok(()) => match self.ic.success_report_interval {
+ z if z == Duration::default() => return,
+ nonzero => nonzero,
+ },
Err(()) => self.ic.effective_http_timeout,
} {
return