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

Daniel Fischer daniel.is.fischer at web.de
Wed Apr 7 16:12:31 EDT 2010

Am Mittwoch 07 April 2010 21:53:20 schrieb Daniel Fischer:
> Am Mittwoch 07 April 2010 20:43:24 schrieb Yves Parès:
> > Yes, from what I read, I assumed it had this behavior.
> > But, then, I don't see why the server holds...
> > I've posted a mail on Haskell-Cafe called "Network: buffering
> > troubles", in which I put a smaller example which reproduces this
> > problem.
> I know :)
> I have now tested it, with both (simple) servers and I can't reproduce
> the problem (ghc-6.12.1 and ghc-6.10.3).

Installed binary-protocol and tried the original (no hSetBuffering), that 
also works flawlessly (ghc-6.12.1 on openSuSE 11.1).

$ ../BeginnersTesting/Server
I wait for a client...
Result: Just 1.6190478
I wait for a client...
Result: Just 12.0
I wait for a client...
Result: Nothing

$ ./Client localhost
Operation 3.4 Div 2.1
Operation sent.
Operation 17 Minus 5
Operation sent.
Operation sent.

Seems to be something with Ubuntu.
Maybe somebody else on Ubuntu could test it?

More information about the Haskell-Cafe mailing list