www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: libssh2 multi threaded environment

libssh2 multi threaded environment

From: Kannamraju P via libssh2-devel <libssh2-devel_at_cool.haxx.se>
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,

libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2017-09-21

the libssh2 team