DNS IPs should only be cached for 1 minute.
This commit is contained in:
parent
ba448b5670
commit
19f2e7b13e
@ -27,7 +27,7 @@ public class HttpClient
|
||||
{
|
||||
|
||||
public static final int TIMEOUT = 5000;
|
||||
private static final Cache<String, InetAddress> addressCache = CacheBuilder.newBuilder().expireAfterWrite( 5, TimeUnit.MINUTES ).build();
|
||||
private static final Cache<String, InetAddress> addressCache = CacheBuilder.newBuilder().expireAfterWrite( 1, TimeUnit.MINUTES ).build();
|
||||
|
||||
@SuppressWarnings("UnusedAssignment")
|
||||
public static void get(String url, EventLoop eventLoop, final Callback<String> callback)
|
||||
|
Loading…
Reference in New Issue
Block a user