mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 01:57:55 +01:00
Only update the dns cache on new lookups (Fixes #1221)
This causes the cached entry to be looked up every 5 minutes instead of the previous system where it was kept as long as it was used. This fixes an issue where after Mojang's session servers go down the ip address tends to change. This caused bungee to repeatedly hit the old (inactive) one which with the previous system would be re-cached every time someone tried to connect
This commit is contained in:
parent
4e353e9277
commit
1623fb6952
@ -68,8 +68,8 @@ public class HttpClient
|
||||
callback.done( null, ex );
|
||||
return;
|
||||
}
|
||||
addressCache.put( uri.getHost(), inetHost );
|
||||
}
|
||||
addressCache.put( uri.getHost(), inetHost );
|
||||
|
||||
ChannelFutureListener future = new ChannelFutureListener()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user