On Dec 19, 2007 5:22 AM, ron minnich <[EMAIL PROTECTED]> wrote:
> The ssh2 always fails with copious data. I.e. lots of data comes in,
> and the proc reading from the socket at some point fails.
>
> I see this go by:
> pread(4, 0x06000508, 8192, 4294967295)
>         return value: 7520
>         data: 0x06000508, 7520
>
> Note the offset is x508, and we read 7520 bytes, which, if the buffer
> is 8k, is an overrun.

 The buffer is PERFDMAX bytes, which appears to be 2*READMAX. READMAX
is 8192 based on what you've posted. In any case, the whole point of
the condition at the start of the loop (e - b->putnext < READMAX) is
to guarentee there is READMAX bytes left in the buffer.
-sqweek

Reply via email to