No subject

Thu Nov 2 09:08:48 EST 2006

interacts with the telnet/rlogin server on AIX.  The previous entries
about this only starting at ML03 and above seem to be correct.  The bug
is not triggered in earlier versions of AIX.

Unfortunately, I have been unable to create a test case program that
causes the hang to occur.  However, a simple hack to channels.c does
seem to fix the problem:

--- channels.c.orig	Tue Jul  2 14:34:32 2002
+++ channels.c	Tue Jul  2 14:35:39 2002
@@ -1278,6 +1278,9 @@
 	    buffer_len(&c->output) > 0) {
 		data = buffer_ptr(&c->output);
 		dlen = buffer_len(&c->output);
+		/* XXX - hack - do not apply - LBB */
+		if (dlen > 8192)
+			dlen = 8192;
 		len = write(c->wfd, data, dlen);
 		if (len < 0 && (errno == EINTR || errno == EAGAIN))
 			return 1;

I've not tried all possible combinations for the magic number "8192".
But, a value of 16384 is too big (does not fix the problem).  I've not 
encountered a hang after applying this patch (although I got bored after 
5 or 10 minutes).

I'd be interested in seeing if that hack fixes the problems others are
seeing, and if there is a case for capping the max size of a write to
tty devices, or if some other clean solution can be applied.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the openssh-unix-dev mailing list