Merge pull request #1256 from vector-im/feature/increase_default_timeout

Increase default timeout to match old riot
This commit is contained in:
Valere 2020-04-20 17:13:59 +02:00 committed by GitHub
commit 1227de3f9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,8 +72,8 @@ internal object NetworkModule {
okReplayInterceptor: OkReplayInterceptor): OkHttpClient { okReplayInterceptor: OkReplayInterceptor): OkHttpClient {
return OkHttpClient.Builder() return OkHttpClient.Builder()
.connectTimeout(30, TimeUnit.SECONDS) .connectTimeout(30, TimeUnit.SECONDS)
.readTimeout(30, TimeUnit.SECONDS) .readTimeout(60, TimeUnit.SECONDS)
.writeTimeout(30, TimeUnit.SECONDS) .writeTimeout(60, TimeUnit.SECONDS)
.addNetworkInterceptor(stethoInterceptor) .addNetworkInterceptor(stethoInterceptor)
.addInterceptor(timeoutInterceptor) .addInterceptor(timeoutInterceptor)
.addInterceptor(userAgentInterceptor) .addInterceptor(userAgentInterceptor)