On Sat, 13 Dec 2008, Markus Moeller wrote:

(Please trim your quotes)

> The server can only answer with a size which was set before by the client 
> (otherwise it is a server bug).  As far as I understand the buffer size is 
> send as part of the SSH_FXP_READ request which is set in sftp.c in line 
> 1025.  Here the max buffer is set to buffer_maxlen (the user set value), but 
> I think it can't be more than bytes_requested = LIBSSH2_SFTP_PACKET_MAXLEN - 
> 10

So does things work fine for you if you make sure it never sends a maximum 
value larger than LIBSSH2_SFTP_PACKET_MAXLEN - 10 ?

-- 

  / daniel.haxx.se

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

Reply via email to