https://kotlinlang.org logo
#ktor
Title
# ktor
d

davidasync

06/27/2019, 10:34 AM
Hello, I notice at CIO engine there's configuration called
maxConnectionsPerRoute
, Does it will count our route and set counter for each route ? Is there any documentation how it works ?
✔️ 1
👌 1
c

cy

06/27/2019, 3:07 PM
Please note that by route it is implied protocol+host+port
path is not included, it is an HTTP route, slightly different terminology
d

davidasync

06/27/2019, 3:56 PM
@cy noted, but does the mechanism of
maxConnectionsPerRoute
is set counter for each route ?
c

cy

06/27/2019, 3:57 PM
yes, it does
for example, if you have maxConnectionsPerRoute=4 then the connection pool will keep up to 4 connections for
<http://google.com|google.com>
and up to 4 connections for
<http://kotlinlang.org|kotlinlang.org>
and up to 4 connections for every other host/port/proto combination
d

davidasync

06/27/2019, 4:01 PM
Thanks for the explanation, Really appreciate 🙇
2 Views