> -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of > Daniel Stenberg > Sent: Friday, May 07, 2010 2:57 PM > To: libcurl development > Cc: Peter Stuge > Subject: RE: Reflection for Secure IT Server > > On Fri, 7 May 2010, Xu, Qiang (FXSGSC) wrote: > > > In the mean time, libcurl's maximum packet length > > CURL_MAX_WRITE_SIZE is defined to be 16KB > > (16,384 bytes). Can I say it also deviates from the spec? > > No. Don't confuse libcurl's buffer size with the maximum size > libssh2 may use or even what it accepts.
But I can see in the trace that libssh2 is using a buffer of this size to do the writing: =========================================== ... [libssh2] 23.847687 SFTP: Writing 16384 bytes [libssh2] 23.847730 Conn: Writing 16410 bytes on channel 0/0, stream #0 ... =========================================== So, when libcurl does SFTP transfer with libssh2, this CURL_MAX_WRITE_SIZE is the maximum buffer size libssh2 uses, isn't it? Thanks, Xu Qiang ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
