From b0ab6881e38f945c19970af2df549973f9c05673 Mon Sep 17 00:00:00 2001 From: sr Date: Tue, 28 Aug 2012 19:55:38 +0200 Subject: [KERNEL] Add IOCTLs to add and remove servers [KERNEL] Detect dead idle connection earlier [KERNEL] Improved debug output --- src/config.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/config.h') 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 -- cgit v1.2.3-55-g7522