summaryrefslogtreecommitdiffhomepage
path: root/svr-main.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2007-08-08 15:12:06 +0000
committerMatt Johnston <matt@ucc.asn.au>2007-08-08 15:12:06 +0000
commit75ec4d6510aba8780effddb53eee4a0296015608 (patch)
treecdbb9481b94425022d83d4b00bd2ef6fcfc7dd4b /svr-main.c
parenta7649c250fccd3a901488dc5135c2eca4cc56ef1 (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.c8
1 files changed, 2 insertions, 6 deletions
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;
}