rrva
06/15/2020, 4:05 PMrequestTimeoutMillis
it is not needed to set connectionRequestTimeout on the engine level as well, right?
I am thinking to add to the following code
val client = HttpClient(Apache) {
engine {
connectionRequestTimeout = 400
}
install(HttpTimeout) {
connectTimeoutMillis = 400
socketTimeoutMillis = 100
}
}
into
val client = HttpClient(Apache) {
engine {
connectionRequestTimeout = 400
}
install(HttpTimeout) {
requestTimeoutMillis = 400
connectTimeoutMillis = 400
socketTimeoutMillis = 100
}
}
Mostly to cover time spent in cases not covered by the other three timeouts (name resolution in DNS for example)e5l
06/16/2020, 12:10 PMrrva
06/16/2020, 12:11 PMrequestTimeoutMillis
and nothing more?Cyrille QUÉMIN
03/31/2021, 8:33 AM