- (bal) Limit data to TTY for AIX only (Newer versions can't handle the
faster data rate) Bug #124
diff --git a/ChangeLog b/ChangeLog
index 7ef5c36..8007598 100644
--- 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
@@ -1267,4 +1271,4 @@
- (stevesk) entropy.c: typo in debug message
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
-$Id: ChangeLog,v 1.2332 2002/07/04 03:08:40 mouring Exp $
+$Id: ChangeLog,v 1.2333 2002/07/04 18:11:09 mouring Exp $
diff --git a/channels.c b/channels.c
index 29eaee7..3ab8ed8 100644
--- a/channels.c
+++ b/channels.c
@@ -1279,6 +1279,11 @@
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) {