- 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
This commit is contained in:
Matt Johnston
2007-08-08 15:12:06 +00:00
parent a7649c250f
commit 75ec4d6510
16 changed files with 109 additions and 48 deletions

View File

@@ -45,6 +45,7 @@ void common_session_init(int sock, char* remotehost);
void session_loop(void(*loophandler)());
void common_session_cleanup();
void session_identification();
void send_msg_ignore();
/* Server */
@@ -92,8 +93,9 @@ struct sshsession {
/* Is it a client or server? */
unsigned char isserver;
long connecttimeout; /* time to disconnect if we have a timeout (for
userauth etc), or 0 for no timeout */
time_t connect_time; /* time the connection was established
(cleared after auth once we're not
respecting AUTH_TIMEOUT any more) */
int sock;
@@ -131,6 +133,9 @@ struct sshsession {
int signal_pipe[2]; /* stores endpoints of a self-pipe used for
race-free signal handling */
time_t last_packet_time; /* time of the last packet transmission, for
keepalive purposes */
/* KEX/encryption related */
struct KEXState kexstate;