airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dimuthu...@apache.org
Subject [airavata] branch staging updated: Setting max connection idle time to 10 minutes
Date Tue, 10 Jul 2018 20:35:10 GMT
This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/staging by this push:
     new bb68c49  Setting max connection idle time to 10 minutes
bb68c49 is described below

commit bb68c49e7e088f2a61a74e219032dd0776c613b7
Author: dimuthu <dimuthu.upeksha2@gmail.com>
AuthorDate: Tue Jul 10 16:35:00 2018 -0400

    Setting max connection idle time to 10 minutes
---
 .../java/org/apache/airavata/helix/adaptor/PoolingSSHJClient.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/airavata-helix/agent-impl/sshj-agent/src/main/java/org/apache/airavata/helix/adaptor/PoolingSSHJClient.java
b/modules/airavata-helix/agent-impl/sshj-agent/src/main/java/org/apache/airavata/helix/adaptor/PoolingSSHJClient.java
index de1742b..3e4411d 100644
--- a/modules/airavata-helix/agent-impl/sshj-agent/src/main/java/org/apache/airavata/helix/adaptor/PoolingSSHJClient.java
+++ b/modules/airavata-helix/agent-impl/sshj-agent/src/main/java/org/apache/airavata/helix/adaptor/PoolingSSHJClient.java
@@ -64,7 +64,7 @@ public class PoolingSSHJClient extends SSHClient {
     private int port;
 
     private int maxSessionsForConnection = 1;
-    private int maxConnectionIdleTimeMS = 60000;
+    private long maxConnectionIdleTimeMS = 10 * 60 * 1000;
 
     public void addHostKeyVerifier(HostKeyVerifier verifier) {
         this.hostKeyVerifier = verifier;
@@ -91,7 +91,7 @@ public class PoolingSSHJClient extends SSHClient {
             public void run() {
                 removeStaleConnections();
             }
-        }, 10, maxConnectionIdleTimeMS, TimeUnit.MILLISECONDS);
+        }, 10, maxConnectionIdleTimeMS * 2, TimeUnit.MILLISECONDS);
     }
 
     ////////////////// client specific operations ///////


Mime
View raw message