don't cache DNS names for so long, in order to deal with DNS changes. webid
authorHenry Story <henry.story@bblfish.net>
Tue, 24 Jan 2012 17:50:23 +0100
branchwebid
changeset 177951fc773c9be
parent 176 f3d715ac5b30
child 178 27674711ebe9
don't cache DNS names for so long, in order to deal with DNS changes.
src/main/scala/ReadWriteWebMain.scala
     1.1 --- a/src/main/scala/ReadWriteWebMain.scala	Tue Jan 24 17:49:38 2012 +0100
     1.2 +++ b/src/main/scala/ReadWriteWebMain.scala	Tue Jan 24 17:50:23 2012 +0100
     1.3 @@ -20,6 +20,11 @@
     1.4  trait ReadWriteWebArgs {
     1.5    val logger: Logger = LoggerFactory.getLogger(this.getClass)
     1.6  
     1.7 +  // in Order to be receptive to DNS changes the DNS cache must be set
     1.8 +  java.security.Security.setProperty("networkaddress.cache.ttl" , ""+60*10); //3 minutes
     1.9 +  java.security.Security.setProperty("networkaddress.cache.negative.ttl",""+60*3)
    1.10 +
    1.11 +
    1.12    val postUsageMsg= Some("""
    1.13    |PROPERTIES
    1.14    |