diff options
author | sr | 2012-08-28 19:55:38 +0200 |
---|---|---|
committer | sr | 2012-08-28 19:55:38 +0200 |
commit | b0ab6881e38f945c19970af2df549973f9c05673 (patch) | |
tree | a02d8c094e758658af991b54539194ba0d016f90 /src/config.h | |
parent | [SERVER] Add missing ntohl() calls when parsing reply (diff) | |
download | dnbd3-b0ab6881e38f945c19970af2df549973f9c05673.tar.gz dnbd3-b0ab6881e38f945c19970af2df549973f9c05673.tar.xz dnbd3-b0ab6881e38f945c19970af2df549973f9c05673.zip |
[KERNEL] Add IOCTLs to add and remove servers
[KERNEL] Detect dead idle connection earlier
[KERNEL] Improved debug output
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/config.h b/src/config.h index 5567013..1cef874 100644 --- a/src/config.h +++ b/src/config.h @@ -35,7 +35,7 @@ // Which is the minimum protocol version the client expects from the server #define MIN_SUPPORTED_SERVER 1 -// No payload allowed exceeding this many bytes: +// No payload allowed exceeding this many bytes (actual data from client->server is not affected by this limit!) #define MAX_PAYLOAD 1000 #define SOCKET_TIMEOUT_SERVER 30 @@ -48,8 +48,17 @@ // This must be a power of two: #define RTT_BLOCK_SIZE 4096 -#define TIMER_INTERVAL_HEARTBEAT 10*HZ -#define TIMER_INTERVAL_PANIC 2*HZ +// Interval of several repeating tasks (in seconds) +#define TIMER_INTERVAL_PROBE_NORMAL 10 +#define TIMER_INTERVAL_PROBE_PANIC 2 +#define TIMER_INTERVAL_KEEPALIVE_PACKET 5 + +// Expect a keepalive response every X seconds +#define SOCKET_KEEPALIVE_TIMEOUT 7 + +// Number of unsuccessful alt_server probes before read errors are reported to the block layer +// (ALL servers will be probed this many times) +#define PROBE_COUNT_TIMEOUT 20 // +++++ Block Device +++++ #define KERNEL_SECTOR_SIZE 512 |