On Thu, 15 Mar 2012, Tom Weber wrote:

Sure, and that's what I did first, but I repeat my concern: What if libssh2_channel_read_ex() reads data from the socket, which turns out to be data for another channel which has already been checked?

Yeah, this is really the main argument for introducing a single "drain the socket" function to make multi-channel use better... Patches welcome! :-)

--

 / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to