diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-04 18:11:09 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-04 18:11:09 +0000 |
commit | 92ea0eadbe247a6b5c1893ae2a94358cca3be994 (patch) | |
tree | fc614e1d380c8c7be3ac87dca52bbde430decab1 | |
parent | 51b2488aad8b5387a8107e90b2f97dbe27ca850a (diff) |
- (bal) Limit data to TTY for AIX only (Newer versions can't handle the
faster data rate) Bug #124
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | channels.c | 5 |
2 files changed, 10 insertions, 1 deletions
@@ -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 $ @@ -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) { |