I don't know if you've resolved your issue yet, but I thought I'd
mention that I'm using libssh2 in a one-thread-per-connection app on
OS X, with no problems. The caveat is that I'm using version 0.13,
and a lot has changed since then. Maybe it would be worth building
your app against the o
Thanks for the response, Mike. I have not resolved the multi-threading
problem yet. I have temporarily avoided the problem by changing my
program to do all the sftp work in the main thread but I need to be able
to do simultaneous sftp operations in multiple threads.
I'll try your suggestion with a
In the latest version (1.7) of transport.c, there is a bug at line 315.
It should be changed from
if(errno == EAGAIN) {
to
if(nread == -1 && errno == EAGAIN) {
The call to recv() at line 308 is returning 0 bytes when I'm shutting
down my sftp channel. Without my change, libssh2_packet_read is
e