Hi, I'm having trouble with CIO in Android I'm get...
# ktor
m
Hi, I'm having trouble with CIO in Android I'm getting weird timeout errors, if I switch to OkHttp everything is fine ...
a
Could you please share a code snippet? What version of Ktor do you use?
m
ktor 2.1.0 as for code snippet well it affects any access to ktor
```val client= HttpClient(OkHttp){
install(ContentNegotiation){
json()
}
install(HttpTimeout){
connectTimeoutMillis = 5000
requestTimeoutMillis=50000
}
ContentEncoding {
gzip()
}
}
val client22= HttpClient(CIO){
install(ContentNegotiation){
json()
}
install(HttpTimeout){
connectTimeoutMillis = 50000
requestTimeoutMillis=50000
}
ContentEncoding {
gzip()
}
}```
client works but client 22 doesen't
a
Could you please explain what do weird timeout errors mean?
m
io.ktor.client.network.sockets.ConnectTimeoutException Connect timeout has expired
being CIO or OkHttp the only one difference ...