From 36a67fa902f2d2e7aa3312b04b3c1a6e1b1f0241 Mon Sep 17 00:00:00 2001 From: oogee Date: Thu, 13 Dec 2018 12:59:18 +0200 Subject: [PATCH] rollback okhttp timeouts --- app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java b/app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java index 02984c53..12e019d3 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java +++ b/app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java @@ -110,7 +110,9 @@ public class BaseApplication extends Application { } return chain.proceed(request); }) - .callTimeout(30, TimeUnit.SECONDS); + .connectTimeout(30, TimeUnit.SECONDS) + .writeTimeout(30, TimeUnit.SECONDS) + .readTimeout(30, TimeUnit.SECONDS); if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { // Just for KitKats // Necessary because our servers don't have the right cipher suites.