Subject: Re: receiving LIBSSH2_ERROR_SOCKET_RECV in libssh2_channel_read though connection seems to be fine

Re: receiving LIBSSH2_ERROR_SOCKET_RECV in libssh2_channel_read though connection seems to be fine

From: Minal Patil <minalkpatil9_at_yahoo.com>
Date: Tue, 8 Mar 2016 06:30:58 +0000 (UTC)

Would like to add that the issue observed only on AIX, whereas the issue not reproducible when same code is used on Linux with the same remote hosts.
 Thanks & Regards, 
MINAL PATIL
Pune | Mobile : +91 9823613614 | Mail : minalkpatil9_at_yahoo.com

    On Thursday, 3 March 2016 12:36 PM, Minal Patil <minalkpatil9_at_yahoo.com> wrote:
 

 Hello Sir/madam,
I am writing a multi threaded application which connects to multiple hosts and executes multiple commands on remote hosts and returns the result using libssh2 version 1.6.00.

I am getting LIBSSH2_ERROR_SOCKET_RECV in libssh2_channel_read if i add any host which exists but donot have sshd running on it. The error is observed when main thread is attempting to connect the host host which exists but donot have sshd running (I will call this as a bad host). Though not everytime this is seen. Also if i go ahead and reattempt the libssh2_channel_read the same seems to be working perfectly fine.
Now if is remove the bad host from host list, everything seems to be working perfectly fine.
Can you please help me identify what could be the reason for libssh2_channel_readto return LIBSSH2_ERROR_SOCKET_RECV.
Appreciate you time and feedback on this.

Thanks & Regards, 
MINAL PATIL
Pune | Mobile : +91 7350014029 | Mail : minalkpatil9_at_yahoo.com

  

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2016-03-08