summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
authorSimon Rettberg2013-11-10 21:30:24 +0100
committerSimon Rettberg2013-11-10 21:30:24 +0100
commit6a6a0e03482a7a799d2bc9ac3440b81d0780547a (patch)
tree3bc87bdf03109d4e46e90c283f21991217216b10 /src/config.h
parentRemove outdated and invalid example configs (diff)
downloaddnbd3-6a6a0e03482a7a799d2bc9ac3440b81d0780547a.tar.gz
dnbd3-6a6a0e03482a7a799d2bc9ac3440b81d0780547a.tar.xz
dnbd3-6a6a0e03482a7a799d2bc9ac3440b81d0780547a.zip
[SERVER] Minor tweaks here and there
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/config.h b/src/config.h
index 7df49a0..0228ae9 100644
--- a/src/config.h
+++ b/src/config.h
@@ -25,19 +25,19 @@
// ########### SERVER ###########
// +++++ Performance related
-#define SERVER_MAX_CLIENTS 5000
+#define SERVER_MAX_CLIENTS 2000
#define SERVER_MAX_IMAGES 5000
-#define SERVER_MAX_ALTS 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_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_PENDING_ALT_CHECKS 50
// +++++ Other magic constants
#define SERVER_RTT_PROBES 5
#define SERVER_RTT_DELAY_INIT 5
-#define SERVER_RTT_DELAY_MAX 15
+#define SERVER_RTT_DELAY_MAX 45
#define SERVER_REMOTE_IMAGE_CHECK_CACHETIME 600 // 10 minutes
#define SERVER_MAX_PROXY_IMAGE_SIZE 100000000000LL // 100GB
@@ -61,7 +61,8 @@
#define COMMENT_LENGTH 120
// in seconds if not stated otherwise (MS = milliseconds)
-#define SOCKET_TIMEOUT_SERVER_MS 30000
+#define SOCKET_TIMEOUT_SERVER_MS 15000
+#define SOCKET_TIMEOUT_SERVER_RETRIES 3 // When waiting for next header, max reties * above timeout is the actual total timeout (ping timeout)
#define SOCKET_TIMEOUT_CLIENT_DATA 2
#define SOCKET_TIMEOUT_CLIENT_DISCOVERY 1