From dc81a51d59ccf31a5b47b989060a626e97a3d709 Mon Sep 17 00:00:00 2001 From: sr Date: Mon, 8 Jul 2013 18:46:26 +0200 Subject: Rewriting.... --- src/config.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/config.h') diff --git a/src/config.h b/src/config.h index 2668410..a59f7bc 100644 --- a/src/config.h +++ b/src/config.h @@ -21,9 +21,15 @@ #ifndef CONFIG_H_ #define CONFIG_H_ +// +++++ Performance related +#define SERVER_MAX_CLIENTS 5000 +#define SERVER_MAX_IMAGES 5000 +#define SERVER_MAX_ALTS 1000 + // +++++ Network +++++ // Default port #define PORT 5003 +#define RPC_PORT (PORT+1) // Protocol version should be increased whenever new features/messages are added, // so either the client or server can run in compatibility mode, or they can @@ -33,6 +39,8 @@ #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 // No payload allowed exceeding this many bytes (actual data from client->server is not affected by this limit!) #define MAX_PAYLOAD 1000 @@ -69,6 +77,5 @@ // +++++ Misc +++++ #define DEFAULT_SERVER_CONFIG_FILE "/etc/dnbd3/server.conf" #define DEFAULT_CLIENT_CONFIG_FILE "/etc/dnbd3/client.conf" -#define MAX_RPC_PAYLOAD 3000 #endif /* CONFIG_H_ */ -- cgit v1.2.3-55-g7522