Skip to content

Commit

Permalink
All caches TTLs are set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeykiselev committed Oct 2, 2017
1 parent 4acef6d commit d9e770f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/scala/com/wavesplatform/Application.scala
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ object Application extends ScorexLogging {
def main(args: Array[String]): Unit = {
// prevents java from caching successful name resolutions, which is needed e.g. for proper NTP server rotation
// http://stackoverflow.com/a/17219327
System.setProperty("sun.net.inetaddr.ttl", "15")
System.setProperty("sun.net.inetaddr.negative.ttl", "15")
Security.setProperty("networkaddress.cache.ttl", "15")
Security.setProperty("networkaddress.cache.negative.ttl", "15")
System.setProperty("sun.net.inetaddr.ttl", "0")
System.setProperty("sun.net.inetaddr.negative.ttl", "0")
Security.setProperty("networkaddress.cache.ttl", "0")
Security.setProperty("networkaddress.cache.negative.ttl", "0")

log.info("Starting...")

Expand Down

0 comments on commit d9e770f

Please sign in to comment.