Subject: Re: libssh2_session_startup is failing with "Failed getting banner"

Re: libssh2_session_startup is failing with "Failed getting banner"

From: Ishwar Ande <ishwar.ande_at_gmail.com>
Date: Mon, 28 Jun 2010 11:51:27 +0530

Hi,

After building linssh2 with the flag "-D_REENTRANT" the problem is resolved.

Refer to this link for more details: http://libssh2.stuge.se/ticket/99

Regards,
Ishwar

On Fri, Jun 25, 2010 at 9:14 PM, Ishwar Ande <ishwar.ande_at_gmail.com> wrote:

> Hi Peter,
>
> It is EEXIST in solaris also. I didn't understand this error in this
> context.
>
> I have also noticed that after libssh2_session_startup() failure, the errno
> is set to 11 i.e. EAGAIN.
>
> Please help me what can be done in this case.
>
> Regards,
> Ishwar
>
> On Fri, Jun 25, 2010 at 6:48 PM, Peter Stuge <peter_at_stuge.se> wrote:
>
>> Ishwar Ande wrote:
>> > Please find the attached trace logs of libssh2.
>>
>> Thanks.
>>
>>
>> > Sometime I am getting "Failed getting banner" error and sometimes
>> > "Unable to exchange encryption keys". I have attached the trace
>> > logs for both the instances.
>>
>> In both cases the socket receive operation returns with errno=17.
>> Can you check what that means on your system? On Linux it's EEXIST,
>> which is not likely the case on your system.
>>
>> Something like:
>>
>> egrep -r \
>> '#[[:space:]]*define[[:space:]]+E[A-Z_]+[[:space:]]+17([[:space:]]|$)' \
>> /usr/include
>>
>> might do the trick if you have GNU egrep available.
>>
>>
>> //Peter
>> _______________________________________________
>> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>>
>
>
>
> --
> --
> Regards,
> Ishwar.
>
>

-- 
--
Regards,
Ishwar.

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-06-28