From 897615c6e926eefe2ef78dc7cc00fe633d2ab332 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sat, 26 Aug 2017 16:24:07 +0200 Subject: [SERVER] Split server-only defs from config.h to serverconfig.h --- src/config.h | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/config.h') diff --git a/src/config.h b/src/config.h index 6699bb1..6a03069 100644 --- a/src/config.h +++ b/src/config.h @@ -21,28 +21,6 @@ #ifndef CONFIG_H_ #define CONFIG_H_ -// ############################## -// ########### SERVER ########### - -// +++++ Performance related -#define SERVER_MAX_CLIENTS 4000 -#define SERVER_MAX_IMAGES 5000 -#define SERVER_MAX_ALTS 250 -#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_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 - -// +++++ Other magic constants -#define SERVER_RTT_PROBES 5 -#define SERVER_RTT_DELAY_INIT 5 -#define SERVER_RTT_DELAY_MAX 45 -#define SERVER_RTT_DELAY_FAILED 180 - -#define SERVER_REMOTE_IMAGE_CHECK_CACHETIME 120 // 2 minutes -#define SERVER_MAX_PROXY_IMAGE_SIZE 100000000000LL // 100GB // +++++ Network +++++ // Default port #define PORT 5003 @@ -55,15 +33,12 @@ // so either the client or server can run in compatibility mode, or they can // cancel the connection right away if the protocol has changed too much #define PROTOCOL_VERSION 2 -// Which is the minimum protocol version the server expects from the client -#define MIN_SUPPORTED_CLIENT 2 // Which is the minimum protocol version the client expects from the server #define MIN_SUPPORTED_SERVER 2 // Length of comment fields (for alt server etc.) #define COMMENT_LENGTH 120 // in seconds if not stated otherwise (MS = milliseconds) -#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 -- cgit v1.2.3-55-g7522