Subject: Re: libssh2 thread safety

Re: libssh2 thread safety

From: Jasmeet Bagga <jasmeet_at_packetdesign.com>
Date: Mon, 16 Apr 2012 19:06:30 -0700

On 4/16/12 12:10 PM, Peter Stuge wrote:
> Jasmeet Bagga wrote:
>> [libssh2] 0.956528 Conn: Setting blocking mode OFF
>> [libssh2] 0.956546 Transport: session_startup for socket 13
>> [libssh2] 0.956554 Transport: Sending Banner: SSH-2.0-libssh2_1.4.1
>> [libssh2] 0.956561 Socket: Sent 23/23 bytes at 0xbb9345+0
>> [libssh2] 0.956992 Socket: Recved 0 bytes banner
>> [libssh2] 0.956996 Failure Event: -43 - Failed getting banner
>> [libssh2] 0.957045 Transport: Disconnecting: reason=11, desc=, lang=
>> => libssh2_transport_write plain (13 bytes)
> The log shows that the problem is very very early. The problem is not
> likely with libssh2 at all but in your application, and the root
> problem will be something you do or do not do to the socket between
> start of your program and calling libssh2_session_handshake().
JFYI, the problem was that the remote device has a very low rate limit for ssh connections and it was abruptly terminating ssh connections (after the TCP connection succeeded), leading to the above seen errors.

>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-04-17