
26 Feb
2009
26 Feb
'09
7:12 p.m.
Thanks, Manlio!
What system? ArchLinux (2.6.27)
Is the timeout the same with a plain C program? Didn't try yet... ^__^
I know that controlling timeout is somehow connected to select(2) Yes. The only working method is to set the socket to non blocking mode, and use select (or poll/epoll/kqueue).
Thanks, now I'm confident, that am on the right way! ^__^ I wonder, if *select* really blocks the whole process... or blocks just the "green" thread, that called it?.. It doesn't depend from being safe/unsafe FFI-ed, does it? Belka -- View this message in context: http://www.nabble.com/controlling-timeout-for-Network.Socket.connect---how--... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.