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 @@ | |||
1 | 20020704 | ||
2 | - (bal) Limit data to TTY for AIX only (Newer versions can't handle the | ||
3 | faster data rate) Bug #124 | ||
4 | |||
1 | 20020703 | 5 | 20020703 |
2 | - (bal) Updated contrib/cygwin/ patch by vinschen@redhat.com | 6 | - (bal) Updated contrib/cygwin/ patch by vinschen@redhat.com |
3 | - (bal) minor correction to utimes() replacement. Patch by | 7 | - (bal) minor correction to utimes() replacement. Patch by |
@@ -1267,4 +1271,4 @@ | |||
1267 | - (stevesk) entropy.c: typo in debug message | 1271 | - (stevesk) entropy.c: typo in debug message |
1268 | - (djm) ssh-keygen -i needs seeded RNG; report from markus@ | 1272 | - (djm) ssh-keygen -i needs seeded RNG; report from markus@ |
1269 | 1273 | ||
1270 | $Id: ChangeLog,v 1.2332 2002/07/04 03:08:40 mouring Exp $ | 1274 | $Id: ChangeLog,v 1.2333 2002/07/04 18:11:09 mouring Exp $ |
diff --git a/channels.c b/channels.c index 29eaee7c4..3ab8ed8a7 100644 --- a/channels.c +++ b/channels.c | |||
@@ -1279,6 +1279,11 @@ channel_handle_wfd(Channel *c, fd_set * readset, fd_set * writeset) | |||
1279 | data = buffer_ptr(&c->output); | 1279 | data = buffer_ptr(&c->output); |
1280 | dlen = buffer_len(&c->output); | 1280 | dlen = buffer_len(&c->output); |
1281 | len = write(c->wfd, data, dlen); | 1281 | len = write(c->wfd, data, dlen); |
1282 | #ifdef _AIX | ||
1283 | /* XXX: Later AIX versions can't push as much data to tty */ | ||
1284 | if (compat20 && c->isatty && dlen >= 8*1024) | ||
1285 | dlen = 8*1024; | ||
1286 | #endif | ||
1282 | if (len < 0 && (errno == EINTR || errno == EAGAIN)) | 1287 | if (len < 0 && (errno == EINTR || errno == EAGAIN)) |
1283 | return 1; | 1288 | return 1; |
1284 | if (len <= 0) { | 1289 | if (len <= 0) { |