tmp increase TIMEOUT from 20s to 40s.

This will not solve the StreamClose, but make it less annoying for some.
This commit is contained in:
Marcel Märtens 2020-09-01 23:16:11 +02:00
parent d8da10f1ff
commit 3ee7bb5a98
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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<f32>);