Subject: RE: LIBSSH2_SFTP_PACKET_MAXLEN

RE: LIBSSH2_SFTP_PACKET_MAXLEN

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 19 Nov 2011 22:47:17 +0100 (CET)

On Sat, 19 Nov 2011, Michael Harris wrote:

>>> Can anyone think of a reason to keep LIBSSH2_SFTP_PACKET_MAXLEN defined in
>>> a public header file btw?
>
> It's probably handy to know the maximum packet length since it affects the
> efficiency of reads and writes (or so the API docs say).

No, that maximum is only the maximum size libssh2 allows an SFTP packet to be
when received from a server, it serves no useful purpose at all to an
application (that I can think of).

I moved that define into the private source when I committed the change that
doubled the LIBSSH2_SFTP_PACKET_MAXLEN size.

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-11-19