You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2009/11/03 19:59:32 UTC

[jira] Resolved: (VFS-289) FTP connection is not released If exception is thrown out of FtpFileObject.doGetOutputStream()

     [ https://issues.apache.org/jira/browse/VFS-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers resolved VFS-289.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

> FTP connection is not released If exception is thrown out of FtpFileObject.doGetOutputStream()
> ----------------------------------------------------------------------------------------------
>
>                 Key: VFS-289
>                 URL: https://issues.apache.org/jira/browse/VFS-289
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>            Reporter: Kirill Safonov
>            Priority: Critical
>             Fix For: 2.0
>
>         Attachments: VFS-289.patch
>
>
> 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 {code}ftpFs.getClient(){code} 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.