Replies: 1 comment
-
Added graceful shutdown ( https://github.com/hyperium/hyper/blob/master/examples/graceful_shutdown.rs ) and the connections are being dropped. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
What would be the best approach to have Hyper Server close connection after a interval of inactivity, let's say 60 seconds.
At the moment the instance is running and high number of connections are in
ESTABLISHED
state via netstat and inspecting several of them via tcpdump there are just ACK's being sent over the wire.For instance, I'd connect to the server and close the tab, while I'd have 2 connections established and still running ACKs :
Would this be something set with the
tokio::net::TcpListener
ortokio::net::TcpStream
in ?Connections, before was nginx running, after service running hyper server, some of them are being closed, but the number keeps increasing.
Beta Was this translation helpful? Give feedback.
All reactions