summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
authorsr2013-07-08 18:46:26 +0200
committersr2013-07-08 18:46:26 +0200
commitdc81a51d59ccf31a5b47b989060a626e97a3d709 (patch)
treebf4219d12573c91efe53ae0941dc0a95cca3caa6 /src/config.h
parentNotes about locks (diff)
downloaddnbd3-dc81a51d59ccf31a5b47b989060a626e97a3d709.tar.gz
dnbd3-dc81a51d59ccf31a5b47b989060a626e97a3d709.tar.xz
dnbd3-dc81a51d59ccf31a5b47b989060a626e97a3d709.zip
Rewriting....
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h9
1 files changed, 8 insertions, 1 deletions
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_ */