diff options
author | Matt Johnston <matt@ucc.asn.au> | 2007-08-08 15:12:06 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2007-08-08 15:12:06 +0000 |
commit | 75ec4d6510aba8780effddb53eee4a0296015608 (patch) | |
tree | cdbb9481b94425022d83d4b00bd2ef6fcfc7dd4b /options.h | |
parent | a7649c250fccd3a901488dc5135c2eca4cc56ef1 (diff) |
- Add -K keepalive flag for dropbear and dbclient
- Try to reduce the frequency of select() timeouts
- Add a max receive window size of 1MB
--HG--
extra : convert_revision : 9aa22036cb511cddb35fbc0e09ad05acb39b64d1
Diffstat (limited to 'options.h')
-rw-r--r-- | options.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -231,6 +231,9 @@ etc) slower (perhaps by 50%). Recommended for most small systems. */ though increasing it may not make a significant difference. */ #define TRANS_MAX_PAYLOAD_LEN 16384 +/* Ensure that data is transmitted every KEEPALIVE seconds. This can +be overridden at runtime with -K. 0 disables keepalives */ +#define DEFAULT_KEEPALIVE 0 /******************************************************************* * You shouldn't edit below here unless you know you need to. @@ -287,9 +290,6 @@ etc) slower (perhaps by 50%). Recommended for most small systems. */ #define _PATH_CP "/bin/cp" -/* Timeouts in seconds */ -#define SELECT_TIMEOUT 20 - /* success/failure defines */ #define DROPBEAR_SUCCESS 0 #define DROPBEAR_FAILURE -1 @@ -343,6 +343,7 @@ etc) slower (perhaps by 50%). Recommended for most small systems. */ #define RECV_WINDOWEXTEND (opts.recv_window / 3) /* We send a "window extend" every RECV_WINDOWEXTEND bytes */ +#define MAX_RECV_WINDOW (1024*1024) /* 1 MB should be enough */ #define MAX_CHANNELS 100 /* simple mem restriction, includes each tcp/x11 connection, so can't be _too_ small */ |