httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm MacCarthaigh <>
Subject APR version of support/logresolve.c
Date Fri, 21 Oct 2005 21:10:51 GMT

support/logresolve doesn't support IPv6 addresses, which is a pain,
because while logresolve is not a brilliant log resolver, it's useful
for putting at the end of brief command lines, grepping things and so


is an APR version, it's also a lot shorter than the current version.

This version of logresolve is not 100% compatible with the current
one. It has different statistical output. stats look like;

	logresolve Statistics:
	Entries: 66022
	    With name   : 0
	    Resolves    : 5
	    - No reverse : 3
	Cache hits      : 66017
	Cache size      : 5  

Compared to;

	logresolve Statistics:
	Entries: 66022
    	    With name   : 589
	    Resolves    : 65433
	    - Not found : 2
	Cache hits      : 65430
	Cache size      : 3
	Cache buckets   :     IP number * hostname
	  128 - localhost.localdomain
	  172 : Host not found
	  232 : Host not found

Bolting on the existing method wouldn't really fly when using APR, it
would eat far too much memory (an average of 22 bytes per line in the

Apart from that, it's functionally identical, and the changes should be
well within minor-version-bump territory. It does introduce a dependency 
on APR 1.3 though, so no plans to backport it to 2.2.x any time soon.

Unless there are any objections, I'd like to commit this sometime in the
next few days.

Colm MacCárthaigh                        Public Key:

View raw message