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

receiving LIBSSH2_ERROR_SOCKET_RECV in libssh2_channel_read though connection seems to be fine

From: Minal Patil <minalkpatil9_at_yahoo.com>
Date: Thu, 3 Mar 2016 07:06:41 +0000 (UTC)

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-03