Thanks for answer! I have used multiple separate TCP connections a long time,in my usage the network usage can increased to 32% form 4% than one connection, and i split file into several parts to transfer together. as you said it's ugly, but i think it's no better way so far. thanks again.
// Liu 2011/1/11 Peter Stuge <[email protected]> > zl liu wrote: > > I want to use multiple SFTP subsystem: > > LIBSSH2_SESSION *session = libssh2_session_init(); > > > > LIBSSH2_SFTP *sftp_session1 = libssh2_sftp_init(session); > > LIBSSH2_SFTP *sftp_session2 = libssh2_sftp_init(session); > > LIBSSH2_SFTP *sftp_session3 = libssh2_sftp_init(session); > > > > LIBSSH2_SFTP_HANDLE *sftp_handle1 = libssh2_sftp_open(sftp_sessions1, > ...); > > LIBSSH2_SFTP_HANDLE *sftp_handle2 = libssh2_sftp_open(sftp_sessions2, > ...); > > LIBSSH2_SFTP_HANDLE *sftp_handle3 = libssh2_sftp_open(sftp_sessions3, > ...); > > > > How to make use of this three handles to transfer files faster, thanks! > > This does not make your transfer faster because as you probably know > the SFTP channels are combined in one session, which means in one TCP > connection. > > I think you only have two choices: > > 1. Help us improve performance of the libssh2 transport layer. > 2. Use multiple separate TCP connections to the server. Note that > this is rather ugly behavior for a client, and note that you must > authenticate each connection. > > > //Peter > _______________________________________________ > libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel >
_______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
