From 75ec4d6510aba8780effddb53eee4a0296015608 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Wed, 8 Aug 2007 15:12:06 +0000 Subject: - 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 --- svr-main.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'svr-main.c') diff --git a/svr-main.c b/svr-main.c index 9e0578e..f7ce221 100644 --- a/svr-main.c +++ b/svr-main.c @@ -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; } -- cgit v1.2.3