[Haskell-cafe] Re: Network parsing and parsec

John Goerzen jgoerzen at complete.org
Tue Sep 20 10:10:29 EDT 2005

On Tue, Sep 20, 2005 at 03:05:25PM +0100, Keean Schupke wrote:
> >strace seems to say yes.
> > 
> >
> Thats odd, the source code  seems to suggest that when you read past the 
> end of the buffer
> it reads the next entire buffer (it has cases for each possible buffer 
> configuration, line, block and none) - and I can think of no reason 
> _why_ it cannot use buffering... I would think that it's a bug if it is 
> the case.

Because the next entire buffer might consume more data than the remote
has sent.  That results in deadlock.

-- John

More information about the Haskell-Cafe mailing list