]> andersk Git - openssh.git/blobdiff - channels.c
- (bal) Limit data to TTY for AIX only (Newer versions can't handle the
[openssh.git] / channels.c
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.036105 seconds and 4 git commands to generate.