Subject: Re: libssh2 port forwarding in multithreaded environment

Re: libssh2 port forwarding in multithreaded environment

From: Peter Stuge <peter_at_stuge.se>
Date: Wed, 5 Feb 2014 16:38:08 +0100

Eric Genevier wrote:
> Could one 'main' session be used to authenticate and then be cloned
> for each subsequent thread? Any pointer greatly appreciated

No, sessions can not be cloned.

Use a single session and make sure that you protect it with a mutex.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2014-02-05