[Haskell-cafe] Re: socket error

Kui Ma mklklk at hotmail.com
Wed Nov 4 05:34:50 EST 2009

 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 at gmail.com
To: haskell-cafe at 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 <agocorona at gmail.com>

<socket: 1796>: 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091104/4cae0785/attachment.html

More information about the Haskell-Cafe mailing list