[Haskell-cafe] Re: socket TChan problem

Stefan Aeschbacher haskell at aeschbacher.ch
Tue Feb 28 02:59:40 EST 2006


I think I finally found the problem. I had to replace the call to usleep
with a call to threadDelay and it worked.



2006/2/27, Stefan Aeschbacher <haskell at aeschbacher.ch>:
> Hi
> I try to write a program that reads from a socket and communicates
> the result over a TChan and writes it to stdout. Somehow I can't seem to
> get it right,
> the result is only printed when I send ETX on the socket.
> Attached is a sample program that shows the behvaviour.
> Any hints on where my error is or how I could debug such a problem is
> appreciated.
> regards
> Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/haskell-cafe/attachments/20060228/2190284f/attachment.htm

More information about the Haskell-Cafe mailing list