Subject: libssh2 multi threaded environment

libssh2 multi threaded environment

From: Kannamraju P via libssh2-devel <>
Date: Thu, 21 Sep 2017 17:30:41 -0400

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)

                         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,

Received on 2017-09-21