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

        Kirill Safonov made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Ralph Goers made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0 [ 12313174 ]
        Resolution Fixed [ 1 ]
        Kirill Safonov made changes -
        Field Original Value New Value
        Attachment VFS-289.patch [ 12423291 ]
        Kirill Safonov created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development