Browse Source

rollback okhttp timeouts

pull/61/merge
oogee 6 years ago
parent
commit
36a67fa902
  1. 4
      app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java

4
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.

Loading…
Cancel
Save