diff options
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 |