Skip to content

Commit

Permalink
Increase timeouts for heartbeat requests
Browse files Browse the repository at this point in the history
  • Loading branch information
sfPlayer1 committed Dec 16, 2023
1 parent df67979 commit 70fdf66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/fabricmc/meta/FabricMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ private static void updateHeartbeat() {
try {
HttpURLConnection conn = (HttpURLConnection) heartbeatUrl.openConnection();
conn.setRequestMethod("HEAD");
conn.setConnectTimeout(500);
conn.setReadTimeout(500);
conn.setConnectTimeout(2000);
conn.setReadTimeout(5000);

int status = conn.getResponseCode();

Expand Down

0 comments on commit 70fdf66

Please sign in to comment.