On Mon, 22 Jun 2009, Ben Kibbey wrote:

> The problem is that _libssh2_transport_read() blocks until there is data to 
> be read which causes libssh2_channel_write() and libssh2_channel_read() to 
> block.  If _libssh2_recv() could be made to always do a non-blocking read, 
> then restore the flags of the channel FD then this fixes things.

libssh2 sets the socket to non-blocking when libssh2_session_startup() is 
called and it is never set back during the entire "session" until 
libssh2_session_free(). Thus I don't understand your conclusions nor fix...

-- 

  / daniel.haxx.se

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

Reply via email to