[Haskell-cafe] Re: socket error

Alberto G. Corona agocorona at gmail.com
Thu Nov 12 08:39:06 EST 2009

Now my program does not produce the error. A thread that was involved in the
process failed with the effect of blocking the main thread that processed
the socket input and produced the output. That ended up in this strange
error after waiting half a second (more or less). instead of being catched
by the error handler. as I expected.

2009/11/4 Kui Ma <mklklk at hotmail.com>

>  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.<http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091112/a7d7b06a/attachment.html

More information about the Haskell-Cafe mailing list