Fuad,

Please stick this in JIRA - it will get lost in a pile of incoming
Nutch email.

Otis

--- Fuad Efendi <[EMAIL PROTECTED]> wrote:

> Thanks Paul,
> 
> 
> It would be nice to have this piece of code in
> org.apache.nutch.fetcher.Fetcher
> 
> 
> private static final int DNS_CACHE_TTL_MINUTES =
>     NutchConf.get().getFloat("dns.cache.ttl.minutes", 100);
> 
> 
> static {
>   java.security.Security.setProperty("networkaddress.cache.ttl" , 
>     DNS_CACHE_TTL_MINUTES*60);
> }
> 
> (may be smth better...)
> 
> 
> 
> >> java.security.Security.setProperty("networkaddress.cache.ttl" , 
> >> "10000");
> 
> >I had to look up what the units are for this since your message was
> possibly ambiguous.
> 
> >The units are in seconds; 10000 is about 150 minutes, the default is
> -1.
> 
> >When working with Weblogic a few years ago, I noticed that they
> included
> the units in the property names.  For example:
> 
> >     something.timeoutMsec  or  something.timeoutSec
> 
> >similarly,
> 
> >     final static int SOMETHING_TIMEOUT_MSEC = 2000;
> 
> >I encourage this practice.
> 
> 



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to