Problems with buffer usage in SSH1.

Balaraman, Srinath srinath_balaraman at mentor.com
Wed Jul 12 08:05:34 EST 2006


Hello All,

I am not sure if this has already been answered, but I couldn't find a
solution to this in the archives so I am asking this. I am using OpenSSH
4.2p2.

When using SSH1 protocol, the function "packet_read_poll1(void)" in file
packet.c, waits till the entire packet of data has been read (line #
967). This may not pose problems with large buffer sizes (more than
30Kb, as it is by default), but when I try to reduce the buffer sizes to
say 5Kb, my ssh client seems to be crashing for any incoming packet
that's of size greater than 5Kb. In SSH2 this problem is overcome by
constantly "consuming" the data in the buffer.

I wanted to find out if somebody has already faced this problem and
knows how to resolve it.

I hope I have stated the problem precisely and correctly.

Thanks,
Srinath.



More information about the openssh-unix-dev mailing list