[Haskell] Re: [Haskell-cafe] ANNOUNCE: enumerator,
an alternative iteratee package
Gregory Collins
greg at gregorycollins.net
Sat Aug 21 14:35:27 EDT 2010
John Millikin <jmillikin at gmail.com> writes:
> I think the docs are wrong, or perhaps we're misunderstanding them.
> Magnus is correct.
>
> Attached is a test program which listens on two ports, 42000 (blocking
> IO) and 42001 (non-blocking). You can use netcat, telnet, etc, to send
> it data. The behavior is as Magnus describes: bytes from
> hGetNonBlocking are available immediately, while hGet waits for a full
> buffer (or EOF) before returning.
"hSetBuffering handle NoBuffering"?
The implementation as it is is fine IMO.
G
--
Gregory Collins <greg at gregorycollins.net>
More information about the Haskell-Cafe
mailing list