diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-07-18 17:48:57 +0200 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-07-18 17:48:57 +0200 |
commit | 36857f6b8b29b208133e40f5111c68d5f5b9f464 (patch) | |
tree | d87f9e6559f7b50afa043a1e3cfcf2d737a4e387 | |
parent | - OpenBSD CVS Sync (diff) | |
download | openssh-36857f6b8b29b208133e40f5111c68d5f5b9f464.tar.xz openssh-36857f6b8b29b208133e40f5111c68d5f5b9f464.zip |
- markus@cvs.openbsd.org 2001/07/15 16:17:08
[serverloop.c]
schedule client alive for ssh2 only, greg@cheers.bungi.com
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | serverloop.c | 9 |
2 files changed, 11 insertions, 9 deletions
@@ -1,8 +1,11 @@ 20010718 - OpenBSD CVS Sync - - stevesk@cvs.openbsd.org 2001/07/14 15:10:17 - [readpass.c sftp-client.c sftp-common.c sftp-glob.c] - delete spurious #includes; ok deraadt@ markus@ + - stevesk@cvs.openbsd.org 2001/07/14 15:10:17 + [readpass.c sftp-client.c sftp-common.c sftp-glob.c] + delete spurious #includes; ok deraadt@ markus@ + - markus@cvs.openbsd.org 2001/07/15 16:17:08 + [serverloop.c] + schedule client alive for ssh2 only, greg@cheers.bungi.com 20010715 - (bal) Set "BROKEN_GETADDRINFO" for darwin platform. Reported by @@ -6042,4 +6045,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.1404 2001/07/18 15:45:44 mouring Exp $ +$Id: ChangeLog,v 1.1405 2001/07/18 15:48:57 mouring Exp $ diff --git a/serverloop.c b/serverloop.c index 1db1c725a..f826c6cb2 100644 --- a/serverloop.c +++ b/serverloop.c @@ -35,7 +35,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: serverloop.c,v 1.74 2001/07/02 22:52:57 markus Exp $"); +RCSID("$OpenBSD: serverloop.c,v 1.75 2001/07/15 16:17:08 markus Exp $"); #include "xmalloc.h" #include "packet.h" @@ -183,11 +183,11 @@ wait_until_can_do_something(fd_set **readsetp, fd_set **writesetp, int *maxfdp, * this could be randomized somewhat to make traffic * analysis more difficult, but we're not doing it yet. */ - if (max_time_milliseconds == 0 && options.client_alive_interval) { + if (compat20 && + max_time_milliseconds == 0 && options.client_alive_interval) { client_alive_scheduled = 1; max_time_milliseconds = options.client_alive_interval * 1000; - } else - client_alive_scheduled = 0; + } /* When select fails we restart from here. */ retry_select: @@ -1000,4 +1000,3 @@ server_init_dispatch(void) else server_init_dispatch_15(); } - |