From 1f9ff8d341814b32a0a4a2607b10d85168f42ad0 Mon Sep 17 00:00:00 2001 From: Grishka Date: Sun, 3 Dec 2023 21:38:00 +0300 Subject: [PATCH] Increase timeout to 60 seconds --- .../org/joinmastodon/android/api/MastodonAPIController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/api/MastodonAPIController.java b/mastodon/src/main/java/org/joinmastodon/android/api/MastodonAPIController.java index c05fd0af..384378df 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/api/MastodonAPIController.java +++ b/mastodon/src/main/java/org/joinmastodon/android/api/MastodonAPIController.java @@ -46,9 +46,9 @@ public class MastodonAPIController{ .create(); private static WorkerThread thread=new WorkerThread("MastodonAPIController"); private static OkHttpClient httpClient=new OkHttpClient.Builder() - .connectTimeout(30, TimeUnit.SECONDS) - .writeTimeout(30, TimeUnit.SECONDS) - .readTimeout(30, TimeUnit.SECONDS) + .connectTimeout(60, TimeUnit.SECONDS) + .writeTimeout(60, TimeUnit.SECONDS) + .readTimeout(60, TimeUnit.SECONDS) .build(); private AccountSession session;