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 <[email protected]>

>
>  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: [email protected]
> To: [email protected]
> 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 <[email protected]>
>
> <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>
>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to