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 1c65ca5 commit 06f036eCopy full SHA for 06f036e
onebusaway-sdk-kotlin-client-okhttp/src/main/kotlin/org/onebusaway/client/okhttp/OkHttpClient.kt
@@ -211,6 +211,11 @@ class OkHttpClient private constructor(private val okHttpClient: okhttp3.OkHttpC
211
.callTimeout(timeout.request())
212
.proxy(proxy)
213
.build()
214
+ .apply {
215
+ // We usually make all our requests to the same host so it makes sense to
216
+ // raise the per-host limit to the overall limit.
217
+ dispatcher.maxRequestsPerHost = dispatcher.maxRequests
218
+ }
219
)
220
}
221
0 commit comments