Increase SSH timeout from 1 second to 10 seconds.
SSH is currently configured to automatically close the connection if
the peer has not been seen for 1 second. In particular, a keep alive
packet is sent from the client to server every second. If the client
doesn't see a response, it will close the connection.
Unfortunately, when the system comes under heavy network/CPU load, we
occasionally see spurious SSH disconnects. A high priority thread
spinning on a CPU for 2 seconds will disconnect all SSH sessions, for
This CL increases the timeout from 1 second to 10 seconds on the client
side (i.e., a workstation SSH'ing into a Zircon system won't disconnect
until it hasn't heard from its peer for 10 seconds); and increases the
timeout from 5 seconds to 10 seconds on the server side (i.e., a Zircon
system's sshd won't disconnect a client for 10 seconds).
Users may observe their SSH clients not closing as quickly during
server reboots, sshd crashes, etc.
2 files changed