We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d83cd2 commit 21777c4Copy full SHA for 21777c4
openlayer-java-client-okhttp/src/main/kotlin/com/openlayer/api/client/okhttp/OkHttpClient.kt
@@ -205,6 +205,11 @@ class OkHttpClient private constructor(private val okHttpClient: okhttp3.OkHttpC
205
.callTimeout(timeout.request())
206
.proxy(proxy)
207
.build()
208
+ .apply {
209
+ // We usually make all our requests to the same host so it makes sense to
210
+ // raise the per-host limit to the overall limit.
211
+ dispatcher.maxRequestsPerHost = dispatcher.maxRequests
212
+ }
213
)
214
}
215
0 commit comments