Subject: Re: libssh2 thread safety

Re: libssh2 thread safety

From: Neil Gierman <ngierman_at_roadrunn.com>
Date: Sun, 15 Apr 2012 09:46:55 -0500

On Apr 15, 2012 4:53 AM, "Daniel Stenberg" <daniel_at_haxx.se> wrote:
>
> On Sat, 14 Apr 2012, Peter Stuge wrote:
>
>>> Is libssh2 thread safe.
>>
>>
>> No.
>
>
> I would not say it like that.
>
> I claim libssh2 _is_ thread safe, as long as you don't share libssh2's
structs and handles between threads and assuming you use the crypto
engine's mutex callbacks properly.
>

I agree. We have been using libssh2 in a multithreaded application for a
few years. Just don't share between threads like Daniel says.

> --
>
> / daniel.haxx.se
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-04-15