logo       

Re: hGetBuf (or something related) broken for 6.2 with sockets: msg#00027

lang.haskell.glasgow.bugs

Subject: Re: hGetBuf (or something related) broken for 6.2 with sockets

On Thu, Dec 18, 2003 at 09:53:50PM +0100, Tomasz Zielonka wrote:
> On Thu, Dec 18, 2003 at 07:44:58PM +0100, George Russell wrote:
>
> 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.

I've made a mistake here.

hGetBuf waits for filling the whole Handle's reading buffer (or reaching
EOF), even if the buffer contains enough data to satisfy the request.

Best regards,
Tom

--
.signature: Too many levels of symbolic links


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise