Connection limit #2561
Answered
by
davidpdrsn
jorendorff
asked this question in
Q&A
Connection limit
#2561
-
SummaryIs there a way to cap the number of connections (in the sense of TCP connections, or socket fds) that I'm already using a tower ConcurrencyLimit, but I believe it only limits the number of in-flight requests. HTTP connections can also be idle, between requests, in which case I don't think they'd count toward that limit. axum version0.7.4 |
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Feb 11, 2024
Replies: 1 comment
-
Not currently. I'd recommend you adapt https://github.com/tokio-rs/axum/blob/main/examples/serve-with-hyper/src/main.rs. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jorendorff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not currently. I'd recommend you adapt https://github.com/tokio-rs/axum/blob/main/examples/serve-with-hyper/src/main.rs.