1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-19 14:59:20 +00:00

Lower the http connection timeout

This commit is contained in:
Tim203
2021-08-21 15:46:15 +02:00
parent 9612996d37
commit 2e1b0ba115

View File

@@ -78,6 +78,8 @@ public class HttpUtils {
connection.setRequestMethod("GET");
connection.setUseCaches(false);
connection.setRequestProperty("User-Agent", USER_AGENT);
connection.setConnectTimeout(3000);
connection.setReadTimeout(5000);
} catch (Exception exception) {
throw new RuntimeException("Failed to create request", exception);
}