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 /svr-main.c | |
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 'svr-main.c')
-rw-r--r-- | svr-main.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -111,7 +111,6 @@ static void main_inetd() { #ifdef NON_INETD_MODE void main_noinetd() { fd_set fds; - struct timeval seltimeout; unsigned int i, j; int val; int maxsock = -1; @@ -175,9 +174,6 @@ void main_noinetd() { FD_ZERO(&fds); - seltimeout.tv_sec = 60; - seltimeout.tv_usec = 0; - /* listening sockets */ for (i = 0; i < listensockcount; i++) { FD_SET(listensocks[i], &fds); @@ -191,7 +187,7 @@ void main_noinetd() { } } - val = select(maxsock+1, &fds, NULL, NULL, &seltimeout); + val = select(maxsock+1, &fds, NULL, NULL, NULL); if (exitflag) { unlink(svr_opts.pidfile); @@ -199,7 +195,7 @@ void main_noinetd() { } if (val == 0) { - /* timeout reached */ + /* timeout reached - shouldn't happen. eh */ continue; } |