Revert the "read-timeout" value back to 1 hour, as there is no that big of a problem with the load of either server, it's a frequent network-"lag" that causes the issue, which is not solved even with 2 hours of waiting.

This commit is contained in:
Lampros Smyrnaios 2023-10-31 15:08:57 +02:00
parent 69ea5b6d19
commit 9073f56227
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class AssignmentsHandler {
private static final boolean askForTest = false; // Enable this only for testing.
private static String requestUrl;
public static final RestTemplate restTemplate = new RestTemplateBuilder().setConnectTimeout(Duration.ofMinutes(2)).setReadTimeout(Duration.ofHours(2)).build();
public static final RestTemplate restTemplate = new RestTemplateBuilder().setConnectTimeout(Duration.ofMinutes(2)).setReadTimeout(Duration.ofHours(1)).build();
public static boolean hadConnectionErrorOnRequest = false;