Does anyone know how to configure default timeouts on the ktor-client when using OkHttp as an engine?
E.g.
Copy code
HttpClient(OkHttp) {
expectSuccess = false
}.config {
// These value exists in the java builder of OkHttp but I don't know how to configure them through the engine {} or config {} ktor api
callTimeout = 0
connectTimeout = 0
readTimeout = 0
writeTimeout = 0
pingInterval = 0
}
but what happens to the resources of requests that are “abandoned” by configuring requestTimeoutMillis I do not know. I hope they are cleaned up immediately