[Haskell-cafe] Re: Network parsing and parsec
k.schupke at imperial.ac.uk
Tue Sep 20 10:20:01 EDT 2005
John Goerzen wrote:
>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
>Because the next entire buffer might consume more data than the remote
>has sent. That results in deadlock.
Would it not be usual to have a timeout incase of dropped connection?
(Btw, did you look at the Parser Monad-Transformer?)
More information about the Haskell-Cafe