camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/3] camel git commit: CAMEL-8757: SFTP should use soTimeout on session as that is what it is. Thanks to Stephan Siano for the patch.
Date Wed, 13 May 2015 09:58:41 GMT
CAMEL-8757: SFTP should use soTimeout on session as that is what it is. Thanks to Stephan Siano
for the patch.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b5e14ca3
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b5e14ca3
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b5e14ca3

Branch: refs/heads/camel-2.15.x
Commit: b5e14ca3ddfec49550c86ae0e3166e6bb2042b00
Parents: d21a7d8
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Wed May 13 11:28:58 2015 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Wed May 13 12:02:22 2015 +0200

----------------------------------------------------------------------
 .../org/apache/camel/component/file/remote/SftpOperations.java  | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b5e14ca3/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
index 0977468..dab4b8d 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
@@ -316,6 +316,11 @@ public class SftpOperations implements RemoteFileOperations<ChannelSftp.LsEntry>
             }
 
         });
+
+        // set the SO_TIMEOUT for the time after the connect phase
+        if (configuration.getSoTimeout() > 0) {
+            session.setTimeout(configuration.getSoTimeout());
+        }
         
         // set proxy if configured
         if (proxy != null) {


Mime
View raw message