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()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: 2.0
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: