cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: host.name vs. host.dispname

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 6 Jun 2012 23:48:13 +0200 (CEST)

On Wed, 6 Jun 2012, Gisle Vanem wrote:

> When running "curl --trace-ascii -", I see lots of such lines:
>
> == Info: Re-using existing connection! (#0) with host (nil)
> == Info: Connected to (nil) (194.103.154.240) port 443 (#0)
>
> I mean, the "(nil)" looks ugly. So to give a nicer trace, when 'host.name'
> is known, why not use that instead when 'host.dispname' is NULL?

I don't get to see this. How do you get it like this? What name resolver is
this libcurl built to use?

> What is the purpose of setting 'host.dispname' to NULL anyway? An oversight?

I can only spot one place dispname gets assigned, and that is in the beginning
of lib/url.c:fix_hostname() ...

> AFAICS there are 3 places that needs patching.

Right. Unless we can make dispname not be NULL at one single place first
instead. Do you think that would be possible?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-06-06