Skip to content

Commit

Permalink
Increase request timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Aug 27, 2024
1 parent 94da068 commit 3bcf941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/skinsrestorer/mojangapi/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 3bcf941

Please sign in to comment.