]> andersk Git - openssh.git/commitdiff
- (bal) Limit data to TTY for AIX only (Newer versions can't handle the
authormouring <mouring>
Thu, 4 Jul 2002 18:11:09 +0000 (18:11 +0000)
committermouring <mouring>
Thu, 4 Jul 2002 18:11:09 +0000 (18:11 +0000)
   faster data rate)  Bug #124

ChangeLog
channels.c

index 71411d01b0e36b41536394766b1309afc400d58d..62bcc75759ea8014269e5cdd829b1eb2027b052a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20020704
+ - (bal) Limit data to TTY for AIX only (Newer versions can't handle the
+   faster data rate)  Bug #124
 20020703
  - (bal) Updated contrib/cygwin/  patch by vinschen@redhat.com 
  - (bal) minor correction to utimes() replacement.  Patch by
index 29eaee7c4d6011841ad8920592aa12cb2d080d6f..3ab8ed8a784a926ab775be474e541700724714ae 100644 (file)
@@ -1279,6 +1279,11 @@ channel_handle_wfd(Channel *c, fd_set * readset, fd_set * writeset)
                data = buffer_ptr(&c->output);
                dlen = buffer_len(&c->output);
                len = write(c->wfd, data, dlen);
+#ifdef _AIX
+               /* XXX: Later AIX versions can't push as much data to tty */ 
+               if (compat20 && c->isatty && dlen >= 8*1024)
+                       dlen = 8*1024;
+#endif
                if (len < 0 && (errno == EINTR || errno == EAGAIN))
                        return 1;
                if (len <= 0) {
This page took 0.037332 seconds and 5 git commands to generate.