Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-177

Passive port ranges are not properly released

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0-M4
    • None
    • None

    Description

      When using a range of passive ports, the passive ports are not appropriately released. This leads to a deadlock after all the ports in the range have been filled up.

      I believe that this is because the QUIT command should be calling session.getDataConnection().closeDataConnection(); which in turn calls session.getListener().getDataConnectionConfiguration().releasePassivePort(<portNumber>);

      In the attached patch, I've modified the org.apache.ftpserver.clienttests.PasvTest testcase to use a 1-value range of passive ports which exposes this issue. I've also added the session.getDataConnection().closeDataConnection() to the QUIT command

      Attachments

        1. FTPSERVER-177.patch
          2 kB
          Kevin Conaway

        Activity

          People

            niklas Niklas Therning
            kevinconaway Kevin Conaway
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: