]> andersk Git - openssh.git/commitdiff
- markus@cvs.openbsd.org 2007/06/11 08:04:44
authordjm <djm>
Mon, 11 Jun 2007 08:33:15 +0000 (08:33 +0000)
committerdjm <djm>
Mon, 11 Jun 2007 08:33:15 +0000 (08:33 +0000)
     [channels.c]
     send 'window adjust' messages every tree packets and do not wait
     until 50% of the window is consumed.  ok djm dtucker

ChangeLog
channels.c

index 3915a4daf57a95d70e2003b94dd83a0a281a0035..fb19daa5729481d5951fbd5e180545fd1f21297e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
      [sshd_config.5]
      oops, here too: put the MAC list into a display, like we do for
      ciphers, since groff has trouble with wide lines;
+   - markus@cvs.openbsd.org 2007/06/11 08:04:44
+     [channels.c]
+     send 'window adjust' messages every tree packets and do not wait
+     until 50% of the window is consumed.  ok djm dtucker
  - (djm) [configure.ac umac.c] If platform doesn't provide swap32(3), then
    fallback to provided bit-swizzing functions
  - (dtucker) [openbsd-compat/bsd-misc.c] According to the spec the "remainder"
index bb14450f473f65edb0487758ade279bca920a10f..1d5b1f108d5e58dddf3fa2f53037f9dfe9601011 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: channels.c,v 1.268 2007/01/03 03:01:40 stevesk Exp $ */
+/* $OpenBSD: channels.c,v 1.269 2007/06/11 08:04:44 markus Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1657,7 +1657,9 @@ channel_check_window(Channel *c)
 {
        if (c->type == SSH_CHANNEL_OPEN &&
            !(c->flags & (CHAN_CLOSE_SENT|CHAN_CLOSE_RCVD)) &&
-           c->local_window < c->local_window_max/2 &&
+           ((c->local_window_max - c->local_window <
+           c->local_maxpacket*3) ||
+           c->local_window < c->local_window_max/2) &&
            c->local_consumed > 0) {
                packet_start(SSH2_MSG_CHANNEL_WINDOW_ADJUST);
                packet_put_int(c->remote_id);
This page took 0.302375 seconds and 5 git commands to generate.