[Bug 1360] Connection aborted on large data -R transfer

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Sat Dec 29 04:43:36 EST 2007


https://bugzilla.mindrot.org/show_bug.cgi?id=1360


Darren Tucker <dtucker at zip.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #1349 is|0                           |1
           obsolete|                            |
   Attachment #1425|                            |ok?
               Flag|                            |




--- Comment #4 from Darren Tucker <dtucker at zip.com.au>  2007-12-29 04:43:32 ---
Created an attachment (id=1425)
 --> (http://bugzilla.mindrot.org/attachment.cgi?id=1425)
Correctly set max packet size for remote TCP forwarded connections.

I believe I have found the root cause of this.

I could not reproduce the connection termination, but I suspect that's
simply a function of the relative speed of the hosts and/or link. 
Using the supplied command produced this gem in the debug output on the
server side:

debug1: channel 3: new [forwarded-tcpip]
debug2: channel 3: open confirm rwindow 2097152 rmax 2097152

This means that, for this channel, the client is advertising a maximum
(SSH) packet size of 2MB, which is silly as there is a hard coded
sanity check in packet.c which limits the packet size to 256KB.

I believe the attached patch will resolve the problem, without
resorting to reverting the patch that increases the channel window
sizes (and thus performance on long, fat pipes).

Could someone who is having the problem please try the patch and let us
know if it resolves the problem?

Thanks.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list