1
0
mirror of https://github.com/etesync/android synced 2024-11-15 20:38:58 +00:00

Increase timeout values

* increase timeout values because some servers are known to be very slow
This commit is contained in:
Ricki Hirner 2015-12-06 13:45:15 +01:00
parent 9dbc32d30b
commit 9ec4a4015d
No known key found for this signature in database
GPG Key ID: C4A212CF0B2B4566

View File

@ -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);