diff --git a/common/src/main/java/org/geysermc/floodgate/util/HttpUtils.java b/common/src/main/java/org/geysermc/floodgate/util/HttpUtils.java index a645478c..f3a99093 100644 --- a/common/src/main/java/org/geysermc/floodgate/util/HttpUtils.java +++ b/common/src/main/java/org/geysermc/floodgate/util/HttpUtils.java @@ -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); }