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

2009-02-28 Thread Manlio Perillo
Belka ha scritto: 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

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

2009-02-26 Thread Belka
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

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

2009-02-26 Thread Belka
Thanks, Manlio! What system? A r c h Linux (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

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

2009-02-24 Thread Belka
It's hard to belive, that nobody ever tackled/solved the subj. problem. I still can delay a bit solving it, in hope somebody would share experience. Regards, Belka Belka wrote: Hello, communion people! I have a problem and ask for an advice. I'm dealing with sockets on *Linux*

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

2009-02-24 Thread Manlio Perillo
Belka ha scritto: Hello, communion people! I have a problem and ask for an advice. I'm dealing with sockets on *Linux* platform (Network.Socket). The problem is that I can't fully control timeout for (connect :: Socket - SockAddr - IO ()) operation. On my system the timeout is - 3 seconds -

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

2009-02-21 Thread Belka
Hello, communion people! I have a problem and ask for an advice. I'm dealing with sockets on *Linux* platform (Network.Socket). The problem is that I can't fully control timeout for (connect :: Socket - SockAddr - IO ()) operation. On my system the timeout is - 3 seconds - I want to be able to