Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Complete
-
Affects Version/s: 4.3.5, 4.2.12
-
Component/s: FTP/SFTP Support
-
Labels:
-
Pull Request URL:
Description
When the isSharedSession is used for the DefaultSftpSessionFactory, there is some race condition window when we can call the target this.jschSession.connect() several times and end up with the session is already connected.
Wrap sftpSession.connect() to the this.sharedSessionLock.readLock().lock() when isSharedSession to protect from that race condition.