Repository: camel Updated Branches: refs/heads/master 31165de63 -> 7cd38e565
CAMEL-10149: Camel-Ftp: SftpOperations use sendKeepAliveMsg instead of sendIgnore method Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7cd38e56 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7cd38e56 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7cd38e56 Branch: refs/heads/master Commit: 7cd38e565f17d9cdd1ad752a61ea9081e5748efe Parents: 31165de Author: Andrea Cosentino <anco...@gmail.com> Authored: Fri Jul 15 10:54:29 2016 +0200 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Fri Jul 15 10:54:29 2016 +0200 ---------------------------------------------------------------------- .../org/apache/camel/component/file/remote/SftpOperations.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/7cd38e56/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 4247997..b3611e0 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 @@ -1024,7 +1024,7 @@ public class SftpOperations implements RemoteFileOperations<ChannelSftp.LsEntry> public synchronized boolean sendNoop() throws GenericFileOperationFailedException { if (isConnected()) { try { - session.sendIgnore(); + session.sendKeepAliveMsg(); return true; } catch (Exception e) { LOG.debug("SFTP session was closed. Ignoring this exception.", e);