diff options
Diffstat (limited to 'src/bin/rbw-agent/agent.rs')
-rw-r--r-- | src/bin/rbw-agent/agent.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/rbw-agent/agent.rs b/src/bin/rbw-agent/agent.rs index 3060bec..21600c3 100644 --- a/src/bin/rbw-agent/agent.rs +++ b/src/bin/rbw-agent/agent.rs @@ -66,8 +66,9 @@ impl Agent { &mut self, mut listener: tokio::net::UnixListener, ) -> anyhow::Result<()> { + // tokio only supports timeouts up to 2^36 milliseconds let mut forever = tokio::time::delay_for( - tokio::time::Duration::from_secs(999_999_999), + tokio::time::Duration::from_secs(60 * 60 * 24 * 365 * 2), ); loop { let timeout = if let Some(timeout) = &mut self.timeout { |