Why a session disconnects when it sits idle
What Strovent Terminal sends to keep an idle 3270, 5250, VT or SSH session open, and the host and network timeouts that can still end a quiet session.
A session that drops after sitting unused was usually ended by a firewall or router that closes quiet connections, or by an idle timer on the host. Strovent Terminal sends small keep-alive messages so the connection is not quiet, but it cannot stop a host from signing you off.
What the app sends while you are idle
- 3270, 5250 and VT over Telnet: a Telnet NOP (no operation) command every 60 seconds while the session is connected. The host ignores the command itself, but it is traffic from your side of the connection, so devices along the path see the connection as in use. TCP keep-alive is also turned on for these connections.
- VT over SSH: an SSH keep-alive request every 30 seconds.
There is no setting for these intervals.
For Mosh, see How long a Mosh session lasts.
Timeouts that can still end the session
For a broader list of causes, including a network change, sleep, Mosh and TLS failures, see Why did my session disconnect?.
Keep-alive traffic only keeps the connection busy. These timers watch your work on the host, so they still apply:
- z/OS: the TN3270 server's
INACTIVEtimer counts SNA traffic to and from the application, not keep-alive traffic. TSO can also cancel a session that has been idle too long. See EZZ6034I CONN DROP after idle and Reconnect to a TSO session after the connection drops. - IBM i:
QINACTITVends or disconnects interactive jobs with no activity. See Why an IBM i session ends or signs off when it sits idle. - Unix and Linux hosts: the SSH server or the shell can have its own idle logout. See SSH keep-alives and idle timeouts.
A session can also end while the app is not on screen. See Background sessions.
When a session has dropped
The status line shows X DISCONNECTED, or Reconnecting… while the app tries again. Reconnect from the sidebar: see Cannot connect. To keep a Unix session's programs running through a drop, run them inside tmux: see Keep your work after a disconnect with tmux.