Add comment after merge of #4952
This commit is contained in:
parent
95b116b8a1
commit
c59bb5740a
@ -116,6 +116,11 @@ dependencies {
|
|||||||
implementation libs.squareup.retrofit
|
implementation libs.squareup.retrofit
|
||||||
implementation libs.squareup.retrofitMoshi
|
implementation libs.squareup.retrofitMoshi
|
||||||
|
|
||||||
|
// When version of okhttp is updated (current is 4.9.3), consider removing the workaround
|
||||||
|
// to force usage of Protocol.HTTP_1_1. Check the status of:
|
||||||
|
// - https://github.com/square/okhttp/issues/3278
|
||||||
|
// - https://github.com/square/okhttp/issues/4455
|
||||||
|
// - https://github.com/square/okhttp/issues/3146
|
||||||
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.9.3"))
|
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.9.3"))
|
||||||
implementation 'com.squareup.okhttp3:okhttp'
|
implementation 'com.squareup.okhttp3:okhttp'
|
||||||
implementation 'com.squareup.okhttp3:logging-interceptor'
|
implementation 'com.squareup.okhttp3:logging-interceptor'
|
||||||
|
@ -72,6 +72,7 @@ internal object NetworkModule {
|
|||||||
val spec = ConnectionSpec.Builder(matrixConfiguration.connectionSpec).build()
|
val spec = ConnectionSpec.Builder(matrixConfiguration.connectionSpec).build()
|
||||||
|
|
||||||
return OkHttpClient.Builder()
|
return OkHttpClient.Builder()
|
||||||
|
// workaround for #4669
|
||||||
.protocols(listOf(Protocol.HTTP_1_1))
|
.protocols(listOf(Protocol.HTTP_1_1))
|
||||||
.connectTimeout(30, TimeUnit.SECONDS)
|
.connectTimeout(30, TimeUnit.SECONDS)
|
||||||
.readTimeout(60, TimeUnit.SECONDS)
|
.readTimeout(60, TimeUnit.SECONDS)
|
||||||
|
Loading…
Reference in New Issue
Block a user