Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-289

FTP connection is not released If exception is thrown out of FtpFileObject.doGetOutputStream()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Nightly Builds
    • 2.0
    • None

    Description

      When the exception is thrown while getting file output stream (i.e. due to lack of write permissions), instance of FtpClient that wat obtained by

      ftpFs.getClient()

      is not put back to ftpFs, so this instance will never be called disconnect(). This effectively leads to the connection never released.

      This will eventually result in "FTP response 421 received. Server closed connection." due to too many open connections.

      Attachments

        1. VFS-289.patch
          4 kB
          Kirill Safonov

        Activity

          People

            Unassigned Unassigned
            ksafonov Kirill Safonov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: