Subject: channel_read

channel_read

From: Ben Kibbey <bjk_at_luxsci.net>
Date: Wed, 10 Jun 2009 21:15:59 -0400

hello,

Theres a problem in _libssh2_transport_read() that when the calling
function loops over it's return value (>0 in channel_read()) and nread
!= recv_amount but contains data, the next call to
_libssh2_transport_read() will block while waiting for more data.

For me, this breaks libssh2_channel_write() because it needs to "drain"
incoming data and as a result calls _libssh2_channel_read().

Seems there needs to be some way to let the calling function know that
the pending data was received without needing to wait for more.

Thanks,

-- 
Ben Kibbey (bjk) @ FreeNode/OFTC/Jabber
KeyID: 0xF2B33BEF
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-06-11