- *Thread-safe*: just don't share handles simultaneously When I see the official website it says not to share handles , does handle means LIBSSH2_SESSION ?
On Thu, Sep 21, 2017 at 5:36 PM, Will Cosgrove <w...@panic.com> wrote: > You’ll need to create one session per thread. > > Will > > > On Sep 21, 2017, at 2:30 PM, Kannamraju P via libssh2-devel < > libssh2-devel@cool.haxx.se> wrote: > > > > Hi All, > > I am trying to use libssh2 in multi threaded environment . I want > to create a > > single libssh session and have multiple sftp_sessions handled by > different threads . > > > > Main (creates libbssh session as well as both the SFTP sessions and > hands over the SFTP_SESSION to > > respective threads) > > > > SESSION ()--- SFTP_SESSION1(Thread1) > > SFTP_SESSION2 (Thread2) > > > > When each this thread tries to read a file , I am running into > different error. > > like assertions, double free , error -13 etc. > > > > Any pointers or help is really appreciated . > > > > > > -- > > thanks & Regards, > > Raju > > _______________________________________________ > > libssh2-devel https://cool.haxx.se/cgi-bin/ > mailman/listinfo/libssh2-devel > > -- thanks & Regards, Raju
_______________________________________________ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel