| 12345678910111213141516 |
- use backoff::ExponentialBackoff;
- use std::time::Duration;
- // FIXME: Determine reasonable size
- /// UDP MTU. Currently far larger than necessary
- pub const UDP_BUFFER_SIZE: usize = 2048;
- pub const UDP_SENDQ_SIZE: usize = 1024;
- pub const UDP_TIMEOUT: u64 = 60;
- pub fn listen_backoff() -> ExponentialBackoff {
- ExponentialBackoff {
- max_elapsed_time: None,
- max_interval: Duration::from_secs(1),
- ..Default::default()
- }
- }
|