From a0c5086ff2dc9e2b238d9800e1c97236ed545098 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 16 Sep 2013 19:08:49 +0200 Subject: [SERVER] More debugging, more safety checks, disable alt servers that fail too often --- src/config.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/config.h') diff --git a/src/config.h b/src/config.h index 76b131b..128edb7 100644 --- a/src/config.h +++ b/src/config.h @@ -28,7 +28,10 @@ #define SERVER_MAX_CLIENTS 5000 #define SERVER_MAX_IMAGES 5000 #define SERVER_MAX_ALTS 1000 -#define SERVER_MAX_UPLINK_QUEUE 1000 +#define SERVER_MAX_UPLINK_QUEUE 1500 +#define SERVER_MAX_UPLINK_FAILS 4 // How many times may a server fail until it is considered bad +#define SERVER_BAD_UPLINK_IGNORE 300 // How many seconds is a server considered bad? +#define SERVER_UPLINK_QUEUELEN_THRES 900 #define SERVER_MAX_PENDING_ALT_CHECKS 50 // +++++ Other magic constants -- cgit v1.2.3-55-g7522