Increase DefaultMaxPerRoute value #1360
Replies: 1 comment
-
The DefaultMaxPerRoute value in an HTTP client controls the maximum number of connections allowed per route, which essentially limits the number of concurrent connections to a specific server (in this case, the Telegram server). The default value of 2 is often set to ensure that applications do not overwhelm a server with too many simultaneous requests, which could lead to performance issues or even blocking by the server. Reasons for Default Setting |
Beta Was this translation helpful? Give feedback.
-
Hi,
I check in the code and see that we're using the default value for DefaultMaxPerRoute in the http client.
It means we only use 2 connections concurrently to the telegram server.
Is there any reason for that? And how can I setting that value?
I would like to increase the performance, because 2 connections concurrently was too small for me.
Beta Was this translation helpful? Give feedback.
All reactions