[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multithreaded reading


On Friday 14 August 2015 10:12:00 Brian Kimutai wrote:
> Hello,
> I just want to know if it's possible for a client to open multiple
> connections to the same server using threads. Because I want to read files
> in parts to improve download speeds. I tried this in 0.6.4 and my pthreads
> had errors joining. With code 22 in particular. How may I do this, with
> your advice?

Hi,

libssh is only threadsafe on a session level (one session per thread). See

http://api.libssh.org/master/libssh_tutor_threads.html

For better download speeds, the sftp code needs to be reworked and use our 
callback system to be fully async. See my response to Tilo his mail ...


	-- andreas

-- 
Andreas Schneider                   GPG-ID: CC014E3D
www.cryptomilk.org                asn@xxxxxxxxxxxxxx


References:
Multithreaded readingBrian Kimutai <briantkimutai@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org