Skip to content

SFTP: ClientSession associated with SftpSession is never closed. #9272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
darrylsmithUGA opened this issue Jun 25, 2024 · 0 comments
Closed

Comments

@darrylsmithUGA
Copy link
Contributor

In what version(s) of Spring Integration are you seeing this issue?

6.3.1

Describe the bug

ClientSession associated with SftpSession is never closed. If the SFTP server is not setup to timeout these connections eventually no more connections can be made to the SFTP server.

Also described here: https://stackoverflow.com/questions/78226325/spring-integration-open-a-new-ssh-connection-after-each-sftpexception

@darrylsmithUGA darrylsmithUGA added status: waiting-for-triage The issue need to be evaluated and its future decided type: bug labels Jun 25, 2024
@artembilan artembilan added in: sftp (EOL) for: backport-to-6.2.x for: backport-to-6.3.x and removed status: waiting-for-triage The issue need to be evaluated and its future decided labels Jun 25, 2024
@artembilan artembilan added this to the 6.4.0-M1 milestone Jun 25, 2024
spring-builds pushed a commit that referenced this issue Jul 1, 2024
Fixes: #9272

* close ClientSession when closing SftpSession
* fix whitespace issues
* stop the SshClient on bean destruction
* use convenient assertions

(cherry picked from commit a3fb68a)
spring-builds pushed a commit that referenced this issue Jul 1, 2024
Fixes: #9272

* close ClientSession when closing SftpSession
* fix whitespace issues
* stop the SshClient on bean destruction
* use convenient assertions

(cherry picked from commit a3fb68a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants