cURL / Mailing Lists / curl-library / Single Mail


Re: vs. host.dispname

From: Daniel Stenberg <>
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) ( port 443 (#0)
> I mean, the "(nil)" looks ugly. So to give a nicer trace, when ''
> 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?

List admin:
Received on 2012-06-06