[
https://issues.apache.org/jira/browse/FTPSERVER-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Niklas Gustavsson closed FTPSERVER-302.
---------------------------------------
Resolution: Fixed
Assignee: Niklas Gustavsson
Fixed in rev 782447 and 782448. Thanks for reporting!
> Passive free port returned is not checked if it is really free or not
> ---------------------------------------------------------------------
>
> 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
> Assignee: Niklas Gustavsson
> Fix For: 1.0.2, 1.1
>
>
> 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.