www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: libssh2 thread safety

Re: libssh2 thread safety

From: Jasmeet Bagga <jasmeet_at_packetdesign.com>
Date: Fri, 13 Apr 2012 19:07:31 -0700

On 4/13/12 6:37 PM, Peter Stuge wrote:
> Jasmeet Bagga wrote:
>> Is libssh2 thread safe.
> No.
Sorry, I didn't see this response before posting a follow up question.
Allow me to ask a more specific question. Is there a sane way to use
libssh2 from a multi-threaded application ? In my case all ssh sessions
are contained within a single thread. However looking at libssh2's use
of errno, I was wondering if I need to compile libssh2 with -D_REENTRANT
to be able to use it correctly here ?

> //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
Received on 2012-04-14

the libssh2 team