cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1271 connect time is half of my setting

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Thu, 29 Aug 2013 14:52:42 +0000

- **status**: open --> pending
- **assigned_to**: Daniel Stenberg

---
** [bugs:#1271] connect time is half of my setting**
**Status:** pending
**Created:** Thu Aug 29, 2013 09:10 AM UTC by he qin
**Last Updated:** Thu Aug 29, 2013 09:10 AM UTC
**Owner:** Daniel Stenberg
hi,
in curl-7.31.0, the timeout of connecting addr  is the half time of my setting with CURLOPT_TIMEOUT_MS or CURLOPT_DNS_CACHE_TIMEOUT when the addr has more than one ip.
in code, here is:
lib/connect.c 
Line 816:
  conn->timeoutms_per_addr = conn->ip_addr->ai_next == NULL ?
                             allow : allow / 2;
Line 1121:
    conn->timeoutms_per_addr = curr_addr->ai_next == NULL ?
                               timeout_ms : timeout_ms / 2;
so, it works don't like I expected.   Maybe there are some reasons that I don't know. 
 I want to connect use the total time as the timeout. I think curl can supply an interface that set by curl_easy_setopt.
how do you think?
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2013-08-29

These mail archives are generated by hypermail.

donate! Page updated May 06, 2013.
web site info

File upload with ASP.NET