spring-projects/spring-integration — pull request #1064 by garyrussell (2014-03-04 19:07:42+00:00)
Title: INT-3305 SFTP Close Session on Error

JIRA: https://jira.springsource.org/browse/INT-3305

Previously, if the channel can't be connected (e.g. if the server
does not support SFTP), the connection to the server remained open.

Close the session in the event of a failure.

Add test with the Apache SSHD server.

__cherry-pick to 3.0.x__