I am having the similar problem when running TCP server application on windows XP. The server can only reads once from the handle of socket, then any operation on the handle will cause error because it is already finalized. It seems a platform issues but I have no idea about it.
Date: Tue, 3 Nov 2009 17:16:06 +0100
From: agocorona@gmail.com
To: haskell-cafe@haskell.org
Subject: [Haskell-cafe] Re: socket error
I´m running windows, ghc 6.10.3 and 6.10.4 in two different machines.
2009/11/3 Alberto G. Corona
: hPutBuf: illegal operation (handle is finalized)
I´m a bit lost trying to find the source of this error.
I´m running an hack application (package hack). Basically it is a handler of web requests.
hack can be used with different web servers: Hyena, simpleserver, HappStack....
all of them produce this error after a few interactions., Supposedly, it happens within the socket module
since neither my module, nor hack, nor the hack simpleserver (package hack-handler-simpleserver) call explicitly hPutBuf
I tried to reproduce the error under linux, but my ubuntu installation is too old and I´m in the process of reinstalling everything again.
In the meantime, Any of you can give me any hint about the error?
_________________________________________________________________
Windows Live: Keep your friends up to date with what you do online.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/soc...