hGetBuf (or something related) broken for 6.2 with sockets
Tomasz Zielonka
t.zielonka at students.mimuw.edu.pl
Thu Dec 18 15:53:50 EST 2003
On Thu, Dec 18, 2003 at 07:44:58PM +0100, George Russell wrote:
>
> (b) The server module only gets part of the data. In fact for me it comes
> to a stop
> with
> [239][240][241][242][243Iterating
> despite there being more data to come. (And despite the fact that the
> client has
> done hFlush).
>
> I don't know any way of working around (b), so I suspect that means
> ghc6.2 is unusable for us. What a pity no development snapshot was
> made for 6.2 shortly before its release, as it might have been
> possible for me to discover this bug in time for it to be fixed in
> 6.2. (I did try to test the 6.3 development snapshot but was
> grounded by the instances bug I've reported elsewhere.)
It seems to work when I change hGetBuf to hGetBufNonBlocking. The name
is a bit misleading - the action _does_ wait for some data, but it doesn't
wait for all requested bytes.
Best regards,
Tom
--
.signature: Too many levels of symbolic links
More information about the Glasgow-haskell-bugs
mailing list