From 3bcf9414a82c7aab57619aeeb1afb3ce194b261e Mon Sep 17 00:00:00 2001 From: AlexProgrammerDE <40795980+AlexProgrammerDE@users.noreply.github.com> Date: Tue, 27 Aug 2024 20:20:53 +0200 Subject: [PATCH] Increase request timeout --- src/main/java/net/skinsrestorer/mojangapi/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/skinsrestorer/mojangapi/Main.java b/src/main/java/net/skinsrestorer/mojangapi/Main.java index 9955319..da3e462 100644 --- a/src/main/java/net/skinsrestorer/mojangapi/Main.java +++ b/src/main/java/net/skinsrestorer/mojangapi/Main.java @@ -21,7 +21,7 @@ public static void main(String[] args) { Server.builder() .http(Integer.parseInt(System.getenv("SERVER_PORT"))) .maxRequestLength(5 * 1024) // 5 kB - .requestTimeout(Duration.ofSeconds(10)) + .requestTimeout(Duration.ofSeconds(40)) .idleTimeout(Duration.ofSeconds(30)) .clientAddressTrustedProxyFilter(a -> true) .clientAddressSources(ClientAddressSource.ofHeader(HttpHeaderNames.X_FORWARDED_FOR))