[Haskell-cafe] controlling timeout for Network.Socket.connect - how?

Belka lambda-belka at yandex.ru
Thu Feb 26 19:12:02 EST 2009

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) 
>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?

View this message in context: http://www.nabble.com/controlling-timeout-for-Network.Socket.connect---how--tp22139581p22235312.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

More information about the Haskell-Cafe mailing list