Socket Options

MR K P SCHUPKE k.schupke at
Mon Jun 28 08:27:13 EDT 2004

>What would happen if a timeout occurs in the _socket_ level?

I believe a (unix) socket level problem (including remote server
closing the connection unexpectedly) results in a Posix SigPIPE.

Is you set the default action to ignore:

	installHandler sigPIPE Ignore Nothing

Then it gets converted to an asynchronous exception... that means
you have to be extremely careful with your 'catch' clauses so
as to ensure that system resources allocated to the socket get
cleaned up. 


More information about the Glasgow-haskell-users mailing list