cURL / Mailing Lists / curl-users / Single Mail

curl-users

The CURLOPT_TIMEOUT does not work with CURLPROXY_SOCKS5

From: 18803307 <18803307_at_qq.com>
Date: Sun, 26 Dec 2010 05:51:22 +0800

my code:
 
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5);
 
curl_easy_setopt(curl, CURLOPT_PROXY, ProxyStr.c_str());
curl_easy_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
 
if the proxy is not valid,it should be wait a lot of time to execute.
 
 btw, I saw the log
 
Fixed in 7.16.0 - October 30 2006
 
SOCKS5 proxy connects can now time-out
 
im confused now. need ur help. thanks

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-25