Skip to content

Can I customize keep-alive settings? #2939

Answered by jplatte
dayvejones asked this question in Q&A
Discussion options

You must be logged in to vote

There is no way with axum::serve right now (feel free to open a feature request), but if you follow the serve-with-hyper example, you can move the server::conn::auto::Builder to a new binding, and call .http1().keep_alive() on it before serve_connection_with_upgrades.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dayvejones
Comment options

Answer selected by dayvejones
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants