You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :
15:16:47.680034 IP ip-10-100-134-146.eu-west-1.compute.internal.https > my_IP.49272: Flags [.], ack 9995, win 68, options [nop,nop,TS val 2026978355 ecr 1575749906], length 0
15:16:48.012893 IP ip-10-100-134-146.eu-west-1.compute.internal.https > my_IP.49282: Flags [.], ack 7875, win 68, options [nop,nop,TS val 2026978688 ecr 1575700754], length 0
15:17:03.040419 IP ip-10-100-134-146.eu-west-1.compute.internal.https > my_IP.49282: Flags [.], ack 7875, win 68, options [nop,nop,TS val 2026993715 ecr 1575766286], length 0
Would this be something set with the tokio::net::TcpListener or tokio::net::TcpStream in ?
Connections, before was nginx running, after service running hyper server, some of them are being closed, but the number keeps increasing.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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