Increase server monitoring timeouts to 20 seconds

Should improve polling reliability for overloaded servers.
This commit is contained in:
timvisee 2021-11-15 13:59:43 +01:00
parent 96d7fc9dec
commit dabeabeff4
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172

View File

@ -23,10 +23,10 @@ use crate::server::{Server, State};
const MONITOR_POLL_INTERVAL: Duration = Duration::from_secs(2);
/// Status request timeout in seconds.
const STATUS_TIMEOUT: u64 = 8;
const STATUS_TIMEOUT: u64 = 20;
/// Ping request timeout in seconds.
const PING_TIMEOUT: u64 = 10;
const PING_TIMEOUT: u64 = 20;
/// Monitor server.
pub async fn monitor_server(config: Arc<Config>, server: Arc<Server>) {