cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: The CURLOPT_TIMEOUT does not work with CURLPROXY_SOCKS5

From: 18803307 <18803307_at_qq.com>
Date: Sun, 26 Dec 2010 07:10:27 +0800

im using winxp+vs2008+7.21.10
   
  
  ------------------ Original ------------------
  From: "Daniel Stenberg"<daniel_at_haxx.se>;
 Date: Sun, Dec 26, 2010 06:03 AM
 To: "the curl tool"<curl-users_at_cool.haxx.se>;
 Cc: "libcurl hacking"<curl-library_at_cool.haxx.se>;
 Subject: Re: The CURLOPT_TIMEOUT does not work with CURLPROXY_SOCKS5

  
On Sun, 26 Dec 2010, 18803307 wrote:

This topic is about libcurl. Please instead use the curl-library mailing list,
to which this reply is CC'ed.

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

Known bug #12 mentions that there are still timeout related issues left to fix
with SOCKS proxies: http://curl.haxx.se/docs/knownbugs.html

We will of course appreciate all help we can get to fix this.

> 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

... and you didn't mention which libcurl version you're using nor on which
platform or anything.

--

  / daniel.haxx.se
-------------------------------------------------------------------
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

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