[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multi-threading
[Thread Prev] | [Thread Next]
- Subject: Re: Multi-threading
- From: Nikos Mavrogiannopoulos <nmav@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 20 Dec 2017 11:55:04 +0100
- To: libssh@xxxxxxxxxx
On Wed, 2017-12-20 at 10:38 +0100, Andreas Schneider wrote: > On Tuesday, 12 December 2017 01:25:58 CET Ахриев Альберт wrote: > > Dear All, > > > > As a newcomer I am struggling to understand how to use libssh in > > multithreaded environment. > > > > Very simple question: if application creates in each thread a > > separate > > instance of ssh session, which runs completely independently from > > other > > instances, is that enough to guarantee thread-safety? In other > > words, are > > the state variables of each session really independent? > > No, that's not enough see: > > http://api.libssh.org/master/libssh_tutor_threads.html Ouch. Is that requirement for libssh or for its back-ends? Other (crypto) libraries are using system threads transparently providing callbacks exceptionally (or even not). Openssl, libgcrypt, gnutls as such examples. regards, Nikos
Re: Multi-threading | Aris Adamantiadis <aris@xxxxxxxxxxxx> |
Re: Multi-threading | Andreas Schneider <asn@xxxxxxxxxxxxxx> |
Multi-threading | Ахриев Альберт <aaahaaah@xxxxxxxxx> |
Re: Multi-threading | Andreas Schneider <asn@xxxxxxxxxxxxxx> |