commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomas Mysik (JIRA)" <>
Subject [jira] [Commented] (NET-419) Not possible to call FTPClient.abort() method correctly
Date Wed, 07 Sep 2011 10:13:09 GMT


Tomas Mysik commented on NET-419:

Thanks a lot for the analysis; frankly, I do not understand everything but if there is a solution
which is not perfect but which would work in most cases, I would give it a try. But the final
decision is up to you, of course.

Thanks again.

> Not possible to call FTPClient.abort() method correctly
> -------------------------------------------------------
>                 Key: NET-419
>                 URL:
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 3.0
>         Environment: java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
> Linux cattie 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 x86_64 x86_64
x86_64 GNU/Linux
>            Reporter: Tomas Mysik
> Unfortunately, it seems that there are difficulties of using FTPClient.abort()
> method [1][2]. Also, it is really not clear how the abort() method should be
> called/used at all - if from another thread (as I would expect) then there is a problem
> thread-safety: FTPClient itself is not thread-safe so it means that some
> custom lock/monitor must be used; but this lock will prevent calling abort() on
> the FTPClient while it is downloading/uploading file since file upload/download
> itself is blocking...
> If I'm wrong and the abort() method works then an example in Javadoc would be more than
> Thanks a lot.
> [1]
> [2]

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message