X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.support.simple%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fjsch%2FAbstractJschTask.java;h=43b158626ae06ec6c95aad3fe3fb155618e53b20;hb=155404c8fe688647c2b30be45302fae4620ce4d9;hp=b27b4b354c02ebbb9c2b493a7374aaee2f98f9c8;hpb=250c189b76502376eeea282cb4d6f930026e4cf4;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/jsch/AbstractJschTask.java b/runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/jsch/AbstractJschTask.java index b27b4b354..43b158626 100644 --- a/runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/jsch/AbstractJschTask.java +++ b/runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/jsch/AbstractJschTask.java @@ -53,6 +53,7 @@ public abstract class AbstractJschTask implements Runnable { getSshTarget().getHost(), getSshTarget().getPort()); session.setUserInfo(getSshTarget().getUserInfo()); + session.setServerAliveInterval(1000); session.connect(); if (log.isDebugEnabled()) log.debug("Connected to " + getSshTarget() + " via SSH"); @@ -71,7 +72,7 @@ public abstract class AbstractJschTask implements Runnable { } } - public final void run() { + public void run() { Session session = openSession(); try { run(session);