[Haskell-cafe] Simple network client
agl at imperialviolet.org
Tue Jan 29 11:12:19 EST 2008
On Jan 29, 2008 6:28 AM, Timo B. Hübel <t.h at gmx.info> wrote:
> Hm, unfortunately not for me (Linux, GHC 6.8.2) ...
That's odd, because it works for me on the exact same setup.
There was a similar bug in lazy bytestring's hGetContents a while back
which involve it waiting for a whole chunk and not returning short
reads, but from watching the strace of this code, GHC is reading
byte-by-byte (which is actually pretty dumb, but functions).
Can you compile both with:
% ghc --make file.hs
And run them with:
% strace -o /tmp/trace ./file
(obviously, you're running strace twice, with different binaries and
and send me the resulting traces? (They'll be quite big, so I don't
know if you want to spam that whole list with them)
Adam Langley agl at imperialviolet.org
More information about the Haskell-Cafe