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

Re: Is it possible to break the timeout of select call?

From: <centrio_at_gmail.com>
Date: Tue, 24 Nov 2009 08:40:14 +0000

"centrio" wrote:
> 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?

> I will take the risk of misunderstanding you. Why are you
> calling select with a 1 second timeout?

I am calling select with 1 second timeout since I need to quite application
on user request. I cannot have a large timeout since then user has to wait
for that much time to quit. Basically I have main thread for UI and this
select is in another thread. if I have a timeout of 1 min and the select
call is waiting, then if user requests to quit the application then it
hangs. So to over come this, i reduced timeout to 1 second and calling this
in a loop 60 times. Also I am aborting the loop if someone has pressed quit
on main thread.

So I wanted to know if its same to have 1min timeout and to have 1sec
timeout for 60 times.

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