cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: help--why didn't CONNECTIONTIMEOUT work?

From: Basil Su <hityourface_at_gmail.com>
Date: Wed, 2 Dec 2009 20:29:09 +0800

hi,
  (1) What libcurl version on what operating system?
       i'm using curl-7.19.5 on Linux kernel 2.6.9
  (2) What protocol
       this problem occured when i tyr to do a ftp download ( url is
ftp://68.xxx.xxx.xxx/file).
  (3) is it repeatable?
        every time
  (4) Does it always take that long against a particular site?
        yes
  (5) What name resolver are you using
       i'm not sure i' have got it.

  and something wired:
   now i have 2 url.
   url1 can be download normally. and then i set (CONNECTTIMEOUT,5), and it
turns out time-out very quickly which is reasonable.
   url2 is the one that always stay stuck for a long time. then i set
(CURLOPT_CONNECTTIMEOUT,5) and it also stay stuck for the same time.
   and i stay stuck even i set (CURLOPT_TIMEOUT,5), and
(CURLOPT_FTP_RESPONSE_TIMEOUT,5), it still didn't wokr.

thanks

2009/12/2 Daniel Stenberg <daniel_at_haxx.se>

> On Mon, 30 Nov 2009, Basil Su wrote:
>
> 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 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?
>>
>
> What libcurl version on what operating system? What name resolver are you
> using? What protocol? Is it repeatable? Does it always take that long
> against a particular site?
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> 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
Received on 2009-12-02