[Haskell-cafe] Simple binary-protocol through network test

Daniel Fischer daniel.is.fischer at web.de
Wed Apr 7 14:11:56 EDT 2010

Am Mittwoch 07 April 2010 19:50:43 schrieb Yves Parès:
> I'm wondering, would it be a problem of chunk size when using
> L.hGetContents? Since the data to read is shorter than the default chunk
> size (32k), would it cause problems?

That shouldn't cause problems. When less than the default chunk size is 
available, it makes a chunk of what it got and tries to get more later 
(unless it found EOF, then it closes the handle).

More information about the Haskell-Cafe mailing list