From 9c04db461ac001fb99c5a588a2bfc192439a6c10 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Sun, 2 Feb 2025 08:52:04 -0500 Subject: [PATCH] Revert "GH-9796: Fix `SftpSession.write()` for concurrency" This reverts commit e73c3f22a03046412d568e368ddd15f8317a092e. --- .../sftp/session/DefaultSftpSessionFactory.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/DefaultSftpSessionFactory.java b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/DefaultSftpSessionFactory.java index 0082cbe9e3..c38c1ddfc0 100644 --- a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/DefaultSftpSessionFactory.java +++ b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/DefaultSftpSessionFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2025 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,7 +45,6 @@ import org.apache.sshd.common.util.net.SshdSocketAddress; import org.apache.sshd.common.util.security.SecurityUtils; import org.apache.sshd.sftp.client.SftpClient; import org.apache.sshd.sftp.client.SftpErrorDataHandler; -import org.apache.sshd.sftp.client.SftpMessage; import org.apache.sshd.sftp.client.SftpVersionSelector; import org.apache.sshd.sftp.client.impl.AbstractSftpClient; import org.apache.sshd.sftp.client.impl.DefaultSftpClient; @@ -439,7 +438,7 @@ public class DefaultSftpSessionFactory implements SessionFactory