mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Merge pull request #1256 from vector-im/feature/increase_default_timeout
Increase default timeout to match old riot
This commit is contained in:
commit
1227de3f9c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user