summaryrefslogtreecommitdiff
path: root/serverloop.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-07-18 15:48:57 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-07-18 15:48:57 +0000
commit36857f6b8b29b208133e40f5111c68d5f5b9f464 (patch)
treed87f9e6559f7b50afa043a1e3cfcf2d737a4e387 /serverloop.c
parentad77313f220c3b6f234b8a7a1d0bd41f71dee76c (diff)
- markus@cvs.openbsd.org 2001/07/15 16:17:08
[serverloop.c] schedule client alive for ssh2 only, greg@cheers.bungi.com
Diffstat (limited to 'serverloop.c')
-rw-r--r--serverloop.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/serverloop.c b/serverloop.c
index 1db1c725a..f826c6cb2 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -35,7 +35,7 @@
35 */ 35 */
36 36
37#include "includes.h" 37#include "includes.h"
38RCSID("$OpenBSD: serverloop.c,v 1.74 2001/07/02 22:52:57 markus Exp $"); 38RCSID("$OpenBSD: serverloop.c,v 1.75 2001/07/15 16:17:08 markus Exp $");
39 39
40#include "xmalloc.h" 40#include "xmalloc.h"
41#include "packet.h" 41#include "packet.h"
@@ -183,11 +183,11 @@ wait_until_can_do_something(fd_set **readsetp, fd_set **writesetp, int *maxfdp,
183 * this could be randomized somewhat to make traffic 183 * this could be randomized somewhat to make traffic
184 * analysis more difficult, but we're not doing it yet. 184 * analysis more difficult, but we're not doing it yet.
185 */ 185 */
186 if (max_time_milliseconds == 0 && options.client_alive_interval) { 186 if (compat20 &&
187 max_time_milliseconds == 0 && options.client_alive_interval) {
187 client_alive_scheduled = 1; 188 client_alive_scheduled = 1;
188 max_time_milliseconds = options.client_alive_interval * 1000; 189 max_time_milliseconds = options.client_alive_interval * 1000;
189 } else 190 }
190 client_alive_scheduled = 0;
191 191
192 /* When select fails we restart from here. */ 192 /* When select fails we restart from here. */
193retry_select: 193retry_select:
@@ -1000,4 +1000,3 @@ server_init_dispatch(void)
1000 else 1000 else
1001 server_init_dispatch_15(); 1001 server_init_dispatch_15();
1002} 1002}
1003