mirror of
https://github.com/timvisee/lazymc.git
synced 2025-05-19 04:40:22 -07:00
Increase server monitoring timeouts to 20 seconds
Should improve polling reliability for overloaded servers.
This commit is contained in:
parent
96d7fc9dec
commit
dabeabeff4
@ -23,10 +23,10 @@ use crate::server::{Server, State};
|
|||||||
const MONITOR_POLL_INTERVAL: Duration = Duration::from_secs(2);
|
const MONITOR_POLL_INTERVAL: Duration = Duration::from_secs(2);
|
||||||
|
|
||||||
/// Status request timeout in seconds.
|
/// Status request timeout in seconds.
|
||||||
const STATUS_TIMEOUT: u64 = 8;
|
const STATUS_TIMEOUT: u64 = 20;
|
||||||
|
|
||||||
/// Ping request timeout in seconds.
|
/// Ping request timeout in seconds.
|
||||||
const PING_TIMEOUT: u64 = 10;
|
const PING_TIMEOUT: u64 = 20;
|
||||||
|
|
||||||
/// Monitor server.
|
/// Monitor server.
|
||||||
pub async fn monitor_server(config: Arc<Config>, server: Arc<Server>) {
|
pub async fn monitor_server(config: Arc<Config>, server: Arc<Server>) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user