cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Fwd: If a given url has serveral host IP addresses, which one curl will take?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 2 Nov 2015 10:50:39 +0100 (CET)

On Mon, 2 Nov 2015, Wang Meng wrote:

> I hacked the glibc function gethostbyname_r by nsswitch, so curl will
> reslove some special hostname through my own defined function. The function
> will pick up one address randomly to be the first of h_addr_list.

First, to reach the people with the most libcurl insights I'd recommend the
curl-library list instead.

> I have read the source code. It seems 7.12.1 & 7.19.7 has no difference
> in dealing with the gethostbyname_r result and the hacked fuction solving
> result is correct.

You're comparing an 11 years old code base with the 6 years old version. I
don't think you can expect many libcurl hackers interested in such a time
travel journey to go back and investigate this very much. Sorry.

If you would have a problem with a modern version of libcurl I think you will
find that we'll be more interested and helpful in getting to the bottom of
things. Chances are you're seeing something we've fixed already.

-- 
  / 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
Received on 2015-11-02