Adjusting the Client Connection Timeout for Linux

Display or change the current timeout period.

  1. To display or change the timeout value, enter:
    /sbin/sysctl -e net.ipv4.tcp_keepalive_time
  2. If necessary, adjust the timeout perod.
    For example, to reduce the timeout period to 15 minutes (900 seconds,) enter:
    /sbin/sysctl -w net.ipv4tcp_keepalive_time=900