Merge branch 'stable-2.14'

* stable-2.14:
  SshDaemon: Set NIO2_READ_TIMEOUT to sshd.idleTimeout

Change-Id: If04a5494bcd9a5a6149387156438534cf79adf0b
This commit is contained in:
David Pursehouse
2017-05-11 16:08:07 +09:00

View File

@@ -188,6 +188,7 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener {
long idleTimeoutSeconds = ConfigUtil.getTimeUnit(cfg, "sshd", null, "idleTimeout", 0, SECONDS);
getProperties().put(IDLE_TIMEOUT, String.valueOf(SECONDS.toMillis(idleTimeoutSeconds)));
getProperties().put(NIO2_READ_TIMEOUT, String.valueOf(SECONDS.toMillis(idleTimeoutSeconds)));
long rekeyTimeLimit =
ConfigUtil.getTimeUnit(cfg, "sshd", null, "rekeyTimeLimit", 3600, SECONDS);