Re: Success story & issue with reading limited number of bytes from a stream

2009-09-18 Thread Martin Bravenboer
Hi Kenton, For the problem I observed, the Refresh() call hang on a message of 2 bytes. I'll try to reproduce a small example and get back to you. Cheers, Martin On Fri, Sep 18, 2009 at 1:53 PM, Kenton Varda wrote: > That Refresh() call should only block if there are no bytes at all available

Re: Success story & issue with reading limited number of bytes from a stream

2009-09-18 Thread Kenton Varda
That Refresh() call should only block if there are no bytes at all available on the stream. But if you're about to read a message, then you expect there to be some bytes, right? Or is it that you're actually receiving a message of zero size? In that case, you could check if the message size is z