summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
authorSimon Rettberg2013-09-16 19:08:49 +0200
committerSimon Rettberg2013-09-16 19:08:49 +0200
commita0c5086ff2dc9e2b238d9800e1c97236ed545098 (patch)
treee5a720b153166281e2474d283e7e27d4eb20c4f7 /src/config.h
parentI'm stupid #62 (diff)
downloaddnbd3-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.h5
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