In Maverick Legacy Client 1.6.x socket time-outs are handled internally by the API (this was not the case in 1.4.x).
The default settings are for a socket time-out of 10 seconds, with the send ignore packet on idle setting set to true. This should ensure that any client experiencing a network outage will be disconnected timely. With this configuration the client will remain connected as long as the connection remains up.
You can change the timeout configurations using the methods below. Please see the comment for information as to what the method does
Ssh2Context ssh2 = (Ssh2Context)con.getContext(SshConnector.SSH2);
// Set timeout in milliseconds
// Set the idle timeout - if a client is idle for this amount of time it will be disconnected
// Send an ignore packet on idle - this helps identify and disconnect during network outages