On Sat, 13 Dec 2008, Markus Moeller wrote:

> Since I experienced a similar issue when using curl with sftp I run the 
> sample with some debug and got to the point where in libssh2_sftp.h the 
> maximal packet length is defined as 40000. Where does this maximum come from 
> ?  Is it an arbitrary value or somewhere defined in the ssh/sftp protocol ?
>
> #define LIBSSH2_SFTP_PACKET_MAXLEN  40000

http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13

says in section 4:

       The maximum size of a packet is in practice determined by the
       client (the maximum size of read or write requests that it sends,
       plus a few bytes of packet overhead).  All servers SHOULD support
       packets of at least 34000 bytes (where the packet size refers to
       the full length, including the header above).  This should allow
       for reads and writes of at most 32768 bytes.

-- 

  / 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