Subject: Re: libssh2 in multithreading

Re: libssh2 in multithreading

From: Peter Stuge <peter_at_stuge.se>
Date: Sat, 13 Oct 2018 17:17:32 +0000

Santiago Ganis wrote:
> My program will be calling different functions from different threads using
> one session. Is it possible to use different sftp channels in different
> threads and share a session?
> Any recommendation about this design will be helpful.

libssh2 is not multithread safe so you have to lock the session.

//Peter
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2018-10-13