diff options
author | Simon Rettberg | 2013-09-16 19:08:49 +0200 |
---|---|---|
committer | Simon Rettberg | 2013-09-16 19:08:49 +0200 |
commit | a0c5086ff2dc9e2b238d9800e1c97236ed545098 (patch) | |
tree | e5a720b153166281e2474d283e7e27d4eb20c4f7 /src/config.h | |
parent | I'm stupid #62 (diff) | |
download | dnbd3-a0c5086ff2dc9e2b238d9800e1c97236ed545098.tar.gz dnbd3-a0c5086ff2dc9e2b238d9800e1c97236ed545098.tar.xz dnbd3-a0c5086ff2dc9e2b238d9800e1c97236ed545098.zip |
[SERVER] More debugging, more safety checks, disable alt servers that fail too often
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |