[Libssh] Greetings

Aris Adamantiadis aris at 0xbadc0de.be
Tue Jun 2 17:52:35 CEST 2009


I second that.

I also wonder how other libs like openssl and such handle
multithreading. I bet they don't handle multithreading inside sessions
more than libssh.

Libssh is fully threadsafe as long as you stick to 1 thread/session max.
ssh_connect is fully threadsafe either.

Aris

Chris Backas a écrit :
> We use libssh in a pretty heavily threaded environment, but I treat  
> the API itself as not-thread-safe with regards to a particular  
> connection. So, I have a background thread that reads/writes/monitors  
> the connection and is the only thing which can call libssh APIs, and  
> then I communicate with this thread from other threads in order to  
> protect it.
> 
> However, we also routinely have multiple connections going on, so  
> there can be many of these background libssh monitor threads going on  
> at once in our application.   This has proven quite reliable.
> 
> Hope that helps,
> Chris Backas
> 
> 
> On Jun 2, 2009, at 9:31 AM, Mark Martin wrote:
> 
>> Greetings,
>>
>> After being directed to the mailing list, and scanned the last year's
>> subject  tags,  I need to inquire as to anyone's experience utilizing
>> multi threading,  I see no reference to any such experience in the  
>> last
>> year's threads.  Can one of the more experienced (in libssh) direct  
>> me to
>> any appropriate discussions on the matter, I am interested in  
>> finding out
>> experiences.
>>
>> My first attempt at this, I was not able to implement threading
>> successfully, after this last upgrade, I will re-attempt it. And  
>> change my
>> methodology a bit.
>>
>> Any experiences would be appreciated.
>>
>> Thanks in advance.
>>
>>
>>
>>
>> _______________________________________________
>> Libssh mailing list
>> Libssh at cerkinfo.be
>> http://www.cerkinfo.be/cgi-bin/mailman/listinfo/libssh
>>
> 
> 
> _______________________________________________
> Libssh mailing list
> Libssh at cerkinfo.be
> http://www.cerkinfo.be/cgi-bin/mailman/listinfo/libssh
> 

-------------- section suivante --------------
Une pi?ce jointe non texte a ?t? nettoy?e...
Nom: smime.p7s
Type: application/x-pkcs7-signature
Taille: 6657 octets
Desc: S/MIME Cryptographic Signature
Url: http://www.cerkinfo.be/pipermail/libssh/attachments/20090602/d7266db4/attachment.bin 


More information about the Libssh mailing list