Commons VFS
  1. Commons VFS
  2. VFS-289

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical 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.

      1. VFS-289.patch
        4 kB
        Kirill Safonov

        Activity

        Hide
        Kirill Safonov added a comment -

        Verified and closed.

        Show
        Kirill Safonov added a comment - Verified and closed.
        Hide
        Ralph Goers added a comment -

        The patch was applied

        Show
        Ralph Goers added a comment - The patch was applied
        Hide
        Kirill Safonov added a comment -

        Patch attached

        Show
        Kirill Safonov added a comment - Patch attached

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development