On Tue, 24 Nov 2009, [email protected] wrote:

Sure you can reduce the timeout, you can call it again in a loop if it timed out.

Earlier I had used timeout of 1min and I used to do select only once. No I have timeout of 1sec and I am looping over it for 1 minute. Is it equivalent to my previous setup?

Assuming the loop takes no time, then yes it is. Basically.

Also if the network has a higher delay say of 2 sec, will it ever be able to connect?

I'm not sure I understand the question. It doesn't matter if you wait for nothing in one loop or loop 60 times. The nothing is still the same nothing.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to