Evgeny Stroykov
09/20/2023, 5:41 PMmaxConnectionsPerRoute
and maxConnectionsCount
endpoint settings to control how many connections can be made at any moment of time. I am wondering, if there is an easy way to monitor actual number of connections?
I want to do that in order to prevent situations where amount of connections reaches a configured maximum. I have a web service that makes HTTP requests while processing an HTTP request from its client, so if it delays too long on acquiring a connection, it affects its own processing of the request.
I can see there is a private val connections
in the Endpoint
class and looks like this is what I am interested in, but it is private. Am I missing something?Aleksei Tirman [JB]
09/21/2023, 7:50 AMEvgeny Stroykov
09/21/2023, 9:57 AM