> David, can you check and see if these two changes fix your problem? As of 0.15, libssh2_blocking_read() is no more.
The code I provided fixes the loop in banner_receive but I prefer Satish's socket state setting and return values, so the code change would be as below (for both 0.17 and the lastest CVS 0.18.0-20070808). *** session.c.orig Wed Aug 8 08:23:49 2007 --- session.c Wed Aug 8 08:28:36 2007 *************** *** 141,150 **** session->banner_TxRx_total_send = 0; return 1; } } ! if (ret <= 0) ! continue; if (c == '\0') { /* NULLs are not allowed in SSH banners */ --- 141,153 ---- session->banner_TxRx_total_send = 0; return 1; } + continue; } ! if (ret == 0) { ! session->socket_state = LIBSSH2_SOCKET_DISCONNECTED; ! return PACKET_FAIL; ! } if (c == '\0') { /* NULLs are not allowed in SSH banners */ *********************************************************************** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *********************************************************************** ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel