cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Is it possible to break the timeout of select call?

From: <centrio_at_gmail.com>
Date: Tue, 24 Nov 2009 06:30:05 +0000

Hi,

This is continuation to the thread
http://curl.haxx.se/mail/lib-2009-10/0022.html
On Fri, 2 Oct 2009, centrio_at_gmail.com wrote:

> I am using multi handle for my application. I have a select call on the
> curl
> FDs, and on return of select, i do multi_perform depending upon the return
> value of select . The timeout for select is 1 min. I have a problem here
> since if the select is blocked for 1 mins, and if I want to close my
> application, it hangs for one min.

> I cannot reduce the 1 min timeout. Is it possible to use any curl APIs to
> break this select?

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

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

Please help.

Best Regards
Shivanand

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-24

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET