]> andersk Git - openssh.git/commitdiff
- markus@cvs.openbsd.org 2002/01/10 11:13:29
authordjm <djm>
Tue, 22 Jan 2002 12:21:39 +0000 (12:21 +0000)
committerdjm <djm>
Tue, 22 Jan 2002 12:21:39 +0000 (12:21 +0000)
     [serverloop.c]
     skip client_alive_check until there are channels; ok beck@

ChangeLog
serverloop.c

index 2b514d7e6a7add0b8ea21544a8f86d55ce7a2699..3480328b4137aaf4cb2b80b5f68cfbcd55b9f984 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
      [channels.c nchan.c]
      replace buffer_consume(b, buffer_len(b)) with buffer_clear(b); 
      ok provos@
+   - markus@cvs.openbsd.org 2002/01/10 11:13:29
+     [serverloop.c]
+     skip client_alive_check until there are channels; ok beck@
 
 
 20020121
index 0c75b05c9602d34cb6d5dc6b960c0994409b4f0f..39d99205785490955d35701e8538688d885d4c47 100644 (file)
@@ -35,7 +35,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: serverloop.c,v 1.93 2001/12/28 15:06:00 markus Exp $");
+RCSID("$OpenBSD: serverloop.c,v 1.94 2002/01/10 11:13:29 markus Exp $");
 
 #include "xmalloc.h"
 #include "packet.h"
@@ -209,15 +209,21 @@ make_packets_from_stdout_data(void)
 static void
 client_alive_check(void)
 {
+       static int had_channel = 0;
        int id;
 
+       id = channel_find_open();
+       if (id == -1) {
+               if (!had_channel)
+                       return;
+               packet_disconnect("No open channels after timeout!");
+       }
+       had_channel = 1;
+
        /* timeout, check to see how many we have had */
        if (++client_alive_timeouts > options.client_alive_count_max)
                packet_disconnect("Timeout, your session not responding.");
 
-       id = channel_find_open();
-       if (id == -1)
-               packet_disconnect("No open channels after timeout!");
        /*
         * send a bogus channel request with "wantreply",
         * we should get back a failure
This page took 0.420672 seconds and 5 git commands to generate.