Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4175

DefaultSftpSessionFactory.getSession() race condition when isSharedSession

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            abilan Artem Bilan
            abilan Artem Bilan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: