|
From: | David Daney |
Subject: | Re: [cp-patches] Patch: RFC: remove InetAddress caching |
Date: | Wed, 11 Jan 2006 14:18:57 -0800 |
User-agent: | Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) |
Tom Tromey wrote:
I'm not checking this in yet -- I would like comments first. I happened to run across the caching code in java.net.InetAddress today. We had a couple discussions about this already in the past, e.g. one is here: http://gcc.gnu.org/ml/java/2000-04/msg00106.html I still think this code is incorrect, as it doesn't respect TTL properly. I would like to remove it, which is what this patch does. Comments?
I agree. The standard C library takes care of DNS caching (via nscd) on most systems, so this extra cache would have no added benefit.
David Daney.
[Prev in Thread] | Current Thread | [Next in Thread] |