How to gracefully close a connection #2115
-
How can I close a connection after a certain timeout? My issue is that I have a lot of browser keep-alive/H2 connections that are using up a lot of memory. I know this because disabling HTTP/1 keep-alive greatly reduces the memory utilization. Currently I am doing this using a custom executor with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The easiest way is probably using hyper low level APIs. That gives good control over stuff like this. For more details I recommend you ask in the hyper repo or discord channel. axum itself isn’t really concerned with the connection |
Beta Was this translation helpful? Give feedback.
The easiest way is probably using hyper low level APIs. That gives good control over stuff like this.
For more details I recommend you ask in the hyper repo or discord channel. axum itself isn’t really concerned with the connection