From 3ee7bb5a989d27c595e97db10731b2c8651db511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=A4rtens?= Date: Tue, 1 Sep 2020 23:16:11 +0200 Subject: [PATCH] tmp increase TIMEOUT from 20s to 40s. This will not solve the StreamClose, but make it less annoying for some. --- client/src/lib.rs | 2 +- server/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/lib.rs b/client/src/lib.rs index fc73ee4abd..5d1bf26eab 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -53,7 +53,7 @@ use vek::*; // The duration of network inactivity until the player is kicked // @TODO: in the future, this should be configurable on the server // and be provided to the client -const SERVER_TIMEOUT: f64 = 20.0; +const SERVER_TIMEOUT: f64 = 40.0; // After this duration has elapsed, the user will begin getting kick warnings in // their chat window diff --git a/server/src/lib.rs b/server/src/lib.rs index 4de5f4c577..dd5d7fbf44 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -70,7 +70,7 @@ use world::{ #[macro_use] extern crate diesel; #[macro_use] extern crate diesel_migrations; -const CLIENT_TIMEOUT: f64 = 20.0; // Seconds +const CLIENT_TIMEOUT: f64 = 40.0; // Seconds #[derive(Copy, Clone)] struct SpawnPoint(Vec3);