"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
