summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
authorJohann Latocha2012-02-16 19:54:15 +0100
committerJohann Latocha2012-02-16 19:54:15 +0100
commit80fd019d337aefe04532476d342ddb0d1aff2851 (patch)
treeaea7173ff3535dc25943d0488b0be6abc9e69e55 /src/config.h
parent[KERNEL] Switch server on connection lost (diff)
downloaddnbd3-80fd019d337aefe04532476d342ddb0d1aff2851.tar.gz
dnbd3-80fd019d337aefe04532476d342ddb0d1aff2851.tar.xz
dnbd3-80fd019d337aefe04532476d342ddb0d1aff2851.zip
[KERNEL] Major bug fixes
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/config.h b/src/config.h
index 4b4fb6f..77caf11 100644
--- a/src/config.h
+++ b/src/config.h
@@ -24,16 +24,18 @@
// network
#define PORT 5003
#define PORTSTR "5003"
-#define SERVER_SOCKET_TIMEOUT 30
-#define CLIENT_SOCKET_TIMEOUT_DATA 5
-#define CLIENT_SOCKET_TIMEOUT_DISCOVERY 1
-#define HB_INTERVAL 10*HZ
-#define MAX_NUMBER_SERVERS 8
+
+#define SOCKET_TIMEOUT_SERVER 30
+#define SOCKET_TIMEOUT_CLIENT_DATA 5
+#define SOCKET_TIMEOUT_CLIENT_DISCOVERY 1
+#define TIMER_INTERVAL_HEARTBEAT 2*HZ
+#define TIMER_INTERVAL_PANIC 1*HZ
+#define NUMBER_SERVERS 8
// block device
#define KERNEL_SECTOR_SIZE 512
#define DNBD3_BLOCK_SIZE 4096
-#define MAX_NUMBER_DEVICES 8
+#define NUMBER_DEVICES 8
// misc
#define DEFAULT_SERVER_CONFIG_FILE "/etc/dnbd3-server.conf"