From 19f2e7b13e208e4618c5ce50bc7603c0d1515348 Mon Sep 17 00:00:00 2001 From: Joseph Hirschfeld Date: Fri, 6 Nov 2015 12:46:14 -0500 Subject: [PATCH] DNS IPs should only be cached for 1 minute. --- proxy/src/main/java/net/md_5/bungee/http/HttpClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/http/HttpClient.java b/proxy/src/main/java/net/md_5/bungee/http/HttpClient.java index 6ad32b5b..4fccd820 100644 --- a/proxy/src/main/java/net/md_5/bungee/http/HttpClient.java +++ b/proxy/src/main/java/net/md_5/bungee/http/HttpClient.java @@ -27,7 +27,7 @@ public class HttpClient { public static final int TIMEOUT = 5000; - private static final Cache addressCache = CacheBuilder.newBuilder().expireAfterWrite( 5, TimeUnit.MINUTES ).build(); + private static final Cache addressCache = CacheBuilder.newBuilder().expireAfterWrite( 1, TimeUnit.MINUTES ).build(); @SuppressWarnings("UnusedAssignment") public static void get(String url, EventLoop eventLoop, final Callback callback)