From 72104f2e83fa724f9667c876dca17a2c5ee9b2a2 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 15 Dec 2015 17:45:44 +0100 Subject: [SERVER] Remove non-working images from list, plus refactoring Now that we can automatically load unknown images from disk on request, it makes sense to remove non-working images from the image list. On future requests, we will look for them on disk again, which is nice in case of temporary storage hickups. Also, some more ore less related locking has been refined (loading images, replicating images) --- src/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config.h') diff --git a/src/config.h b/src/config.h index 3ebfd54..f5b550c 100644 --- a/src/config.h +++ b/src/config.h @@ -28,10 +28,10 @@ #define SERVER_MAX_CLIENTS 400 #define SERVER_MAX_IMAGES 5000 #define SERVER_MAX_ALTS 250 -#define SERVER_MAX_UPLINK_QUEUE 1500 #define SERVER_MAX_UPLINK_FAILS 8 // How many times may a server fail until it is considered bad #define SERVER_BAD_UPLINK_IGNORE 120 // How many seconds is a server considered bad? -#define SERVER_UPLINK_QUEUELEN_THRES 900 +#define SERVER_MAX_UPLINK_QUEUE 1500 // Maximum number of queued requests per uplink +#define SERVER_UPLINK_QUEUELEN_THRES 900 // Threshold where we start dropping incoming clients #define SERVER_MAX_PENDING_ALT_CHECKS 50 #define SERVER_CACHE_MAP_SAVE_INTERVAL 90 -- cgit v1.2.3-55-g7522