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 {
return OkHttpClient.Builder()
.connectTimeout(30, TimeUnit.SECONDS)
.readTimeout(30, TimeUnit.SECONDS)
.writeTimeout(30, TimeUnit.SECONDS)
.readTimeout(60, TimeUnit.SECONDS)
.writeTimeout(60, TimeUnit.SECONDS)
.addNetworkInterceptor(stethoInterceptor)
.addInterceptor(timeoutInterceptor)
.addInterceptor(userAgentInterceptor)