All I've found is that ClientBuilder
has an option for setting the maximum idle connections per host, but this doesn't seem to give an overall limit to the number of connections available.
Asked
Active
Viewed 1,062 times
5

Shepmaster
- 388,571
- 95
- 1,107
- 1,366

CyanRook
- 8,664
- 4
- 21
- 20
1 Answers
2
It looks like Reqwest works on top of Tokio. You can configure tokio::Runtime
's thread count for the whole application.
Unfortunately, I didn't find a way to configure tokio::Runtime
to use a separate thread pool for a particular library. Per-library configuration doesn't look possible from my point of view.

Shepmaster
- 388,571
- 95
- 1,107
- 1,366

MaxV
- 2,601
- 3
- 18
- 25
-
I don't think there's any relationship between the tokio Runtime thread count and the Reqwest connection pool. – JimR Sep 12 '22 at 10:55