Subject: Re: libssh2 in multithreading

Re: libssh2 in multithreading

From: Peter Stuge <>
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.

Received on 2018-10-13