Subject: Re: Callback for channel data ready

Re: Callback for channel data ready

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 15 Mar 2012 10:15:06 +0100 (CET)

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
Received on 2012-03-15