Socket Options

Peter Simons simons at cryp.to
Mon Jun 28 08:05:41 EDT 2004


Glynn Clements writes:

 >> Am I even supposed to set them, or is there a better way to
 >> specify general I/O timeouts than on the socket level?

 > Non-blocking I/O and select/poll; although I don't know
 > how well that is supported.

Can anyone tell me how well supported it is? What would
happen if a timeout occurs in the _socket_ level? Will an
exception be thrown? Can I count on this behavior even when
reading from a socket (read: a Handle promoted from a
Socket) with hGetContents?

Peter



More information about the Glasgow-haskell-users mailing list