Verified Commit 98e41cc5 authored by Sarath's avatar Sarath
Browse files

Increase timeouts on Okhttp client

parent 64c38046
......@@ -132,9 +132,10 @@ public class WebUtil {
}
OkHttpClient.Builder builder = new OkHttpClient.Builder()
.connectTimeout(90, TimeUnit.SECONDS)
.retryOnConnectionFailure(true)
.readTimeout(90, TimeUnit.SECONDS);
.connectTimeout(120, TimeUnit.SECONDS)
.callTimeout(120, TimeUnit.SECONDS)
.readTimeout(120, TimeUnit.SECONDS);
if (BuildConfig.DEBUG) {
builder.addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment