Mailing Lists
|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker Archives
[curl:bugs] Re: #1271 connect time is half of my setting
From: he qin <hqin6_at_users.sf.net>
Date: Fri, 30 Aug 2013 03:41:52 +0000
Now, I have no idea for this. but I think we can add some note for the logic at least, and supply an interface for users to set just use the first ip or poll ips. default can be poll ips like now logic.
Maybe we can do some thing for ips load balancy, but it has a little hard. ^.^
--- ** [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 02:52 PM 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-30 These mail archives are generated by hypermail. |
Page updated May 06, 2013.
web site info