[Libssh] Greetings

Chris Backas chb at infoplusonline.com
Tue Jun 2 15:38:22 CEST 2009


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
>




More information about the Libssh mailing list