Update the TCP idle timeout for your Network Load Balancer listener
For each TCP request made through a Network Load Balancer, the state of that connection is tracked. If no data is sent through the connection by either the client or target for longer than the idle timeout, the connection is closed. The default idle timeout value for TCP flows is 350 seconds, but can be updated to any value between 60-6000 seconds.
To update the TCP idle timeout using the console
Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/
. -
In the navigation pane, under Load Balancing, choose Load Balancers.
-
Select the Network Load Balancer.
-
On the listeners tab choose the Actions, View listener details.
-
On the listener details page, in the Attributes tab, select Edit.
-
On the Edit listener attributes page, in the Listener attributes section, enter a value for TCP idle timeout.
-
Choose Save changes
To update the TCP idle timeout using the Amazon CLI
Use the modify-listener-attributes command with the
tcp.idle_timeout.seconds
attribute.