Hope to support "Max Conntions Per Host”.
Hop to support the max_connections_per_host in the config of pool. The following is the implementation of golang https://github.com/golang/go/blob/go1.23.2/src/net/http/transport.go#L218
That would be useful for a use case of mine as well. Are there any plans to support it in the near future?
It would be useful for me too
I think this is closed with https://seanmonstar.com/blog/hyper-util-composable-pools/ and:
.connector_layer(tower::limit::concurrency::ConcurrencyLimitLayer::new(100))
Right?
I think this is closed with https://seanmonstar.com/blog/hyper-util-composable-pools/ and:
.connector_layer(tower::limit::concurrency::ConcurrencyLimitLayer::new(100))Right?
I have no time rn to check the details, but the PR is really clear, so for me it's a yes.
Note, we haven't yet replaced the pool in reqwest, that will come soon.
Haven't had the opportunity to check that, but looks promising. Thank you all for the hard work!