From 9ec4a4015d0b865fab4c9ddcc7070ffffdcce690 Mon Sep 17 00:00:00 2001 From: Ricki Hirner Date: Sun, 6 Dec 2015 13:45:15 +0100 Subject: [PATCH] Increase timeout values * increase timeout values because some servers are known to be very slow --- app/src/main/java/at/bitfire/davdroid/HttpClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/at/bitfire/davdroid/HttpClient.java b/app/src/main/java/at/bitfire/davdroid/HttpClient.java index 108352a1..ef4a9fb1 100644 --- a/app/src/main/java/at/bitfire/davdroid/HttpClient.java +++ b/app/src/main/java/at/bitfire/davdroid/HttpClient.java @@ -64,8 +64,8 @@ public class HttpClient extends OkHttpClient { // set timeouts setConnectTimeout(30, TimeUnit.SECONDS); - setWriteTimeout(15, TimeUnit.SECONDS); - setReadTimeout(45, TimeUnit.SECONDS); + setWriteTimeout(30, TimeUnit.SECONDS); + setReadTimeout(120, TimeUnit.SECONDS); // add User-Agent to every request networkInterceptors().add(userAgentInterceptor);