Subject: Re: Libss2 in multithread environment

Re: Libss2 in multithread environment

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 21 Apr 2010 11:40:31 +0200 (CEST)

On Wed, 21 Apr 2010, Peter Stuge wrote:

>> I am trying to use the libssh2 library in multithread environment, but it
>> is not working in my case.
>
> Basically multithreading is not supported in libssh2 at this time.

It is! It just requires that each thread uses its own session. You can't
share sessions and you can't separate channels into different threads (since
they use the same underlying session).

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-04-21