Basil Su wrote:
HI ALL,
   i use curl-7.19.5
i call the function like that curl_easy_setopt(_curl,CURLOPT_CONNECTTIMEOUT,(long)5) because i don't want to wait for a long time. but i fond it didn't work. it also stay

Why does your function stuck? What is the cause for the hanging?
 - no DNS response?
 - no TCP connect?
 - no HTTP response?

For all these kinds of problems there are different timeout options (see man curl_easy_setopt)

klaus

stuck for almost 3 minutes just like it act without using this funciton.
why didn't it work? and how could i make it not stay stuck for such a long time?

thanks
Basil

------------------------------------------------------------------------

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

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

Reply via email to