Passive free port is not checked
--------------------------------

                 Key: FTPSERVER-302
                 URL: https://issues.apache.org/jira/browse/FTPSERVER-302
             Project: FtpServer
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.0
            Reporter: Gusti Benawi


A passive port is requested by calling the method 
DataConnectionConfiguration.requestPassivePort()

The search of a free port is done by PassivePorts.reserveNextPort()

The "free" port returned is based on an internal boolean flag, which determines 
whether a port is free or not. 

This is bad since the port returned could be actually being used by another 
application. The port will still be returned, and an exception will be thrown 
since it will fail to create the data socket.


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

Reply via email to