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

2003-12-23 Thread Simon Marlow
> ... I've attached a working version which you can use instead of > System.IO.hGetBuf ... But that version had a bug in it too (sigh). Here's another attempt... Cheers, Simon HGetBuf.hs Description: HGetBuf.hs ___ Glasgow-haskell-bugs mailin

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

2003-12-22 Thread Simon Marlow
> The problem with downloading things direct from CVS is that I > don't expect people > to run substantial tests before checking things into CVS. > (We don't on our CVS > server.) Of course I don't expect a snapshot release to have > the same reliability > as a real release, but at least snaps

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

2003-12-19 Thread George Russell
Simon Marlow wrote (snipped): BTW George: there are plenty of 6.1.xxx snapshots available - these are the 6.2 prereleases. There are, but no recent ones. What I would like to have had is a 6.2-epsilon version, not 6.1 and a bit. We don't snapshot along the STABLE branch at the moment; no re

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

2003-12-19 Thread Simon Marlow
> On Fri, Dec 19, 2003 at 11:39:28AM +0100, Tomasz Zielonka wrote: > > > > Well, I think that it would be better if hGetBuf didn't block if all > > requested data was already in buffer, but I don't insist on > it. However > > this change of semantics can brake existing programs. > > I am mixin

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

2003-12-19 Thread Tomasz Zielonka
On Fri, Dec 19, 2003 at 11:39:28AM +0100, Tomasz Zielonka wrote: > > Well, I think that it would be better if hGetBuf didn't block if all > requested data was already in buffer, but I don't insist on it. However > this change of semantics can brake existing programs. I am mixing things again: Th

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

2003-12-19 Thread Tomasz Zielonka
On Fri, Dec 19, 2003 at 10:26:02AM -, Simon Marlow wrote: > > > 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 > > >

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

2003-12-19 Thread Simon Marlow
> 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

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

2003-12-19 Thread Tomasz Zielonka
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

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

2003-12-18 Thread Tomasz Zielonka
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 hFlus