Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-419

Not possible to call FTPClient.abort() method correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0
    • Fix Version/s: None
    • Component/s: FTP
    • Labels:
      None
    • Environment:

      Description

      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 with
      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 welcome.

      Thanks a lot.
      [1] http://apache-commons.680414.n4.nabble.com/Net-FTPClient-abort-problem-td739542.html
      [2] http://www.tikalk.com/java/forums/apache-ftp-client-abort-transfer

        Attachments

        1. ftp-synchro.diff
          19 kB
          Bogdan Drozdowski

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tmysik Tomas Mysik
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: