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:
parent
69ea5b6d19
commit
9073f56227
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue