Setting the session keep-alive parameter

You can use the TCP keep-live parameter to set the maximum idle time that the TCP protocol allows before sending a probe to test for an inactive session.

The protocol sends keep-alive requests to the remote client any time the session remains idle for periods longer than the keep-alive value. The idle period is defined by the TIMMRKTIMO parameter on the CHGTELNA command. When a session appears to be inactive (no response is received from the remote client to any keep-alive probe) that session is ended, the virtual device associated with the session is returned to the free pool of virtual devices, and the IBM i operating system performs the action set in the QDEVRCYACN system value on the interactive job running on the virtual device.

The Telnet server defines the keep-alive setting to 600 seconds by default.

This setting takes effect at server startup. In addition to the session keep-alive timeout parameter, you might also want to review the Timeout interval settings in the Inactive Jobs System Values in IBM Navigator for i. Refer to Setting inactive job timeout used by Telnet.

Start of changeSpecify the Session keep alive timeout (TIMMRKTIMO) parameter on the Change Telnet Attributes (CHGTELNA) command, for example, CHGTELNA TIMMRKTIMO(*DFT).
  • *DFT - The default session keep alive value is set to 600 seconds.
  • 1-2419200 - Specify the number of seconds for the session keep alive timeout. Valid values range from 1 through 2419200 seconds (28 days).
End of change