Repository: camel Updated Branches: refs/heads/camel-2.17.x e8a55ac9c -> d88907a6d
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/d88907a6 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d88907a6 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d88907a6 Branch: refs/heads/camel-2.17.x Commit: d88907a6d6151a39da0c19686896af0517cb14dd Parents: e8a55ac 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:55:33 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/d88907a6/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 e9982a4..7104336 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 @@ -1017,7 +1017,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);