mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niklas Gustavsson (JIRA)" <j...@apache.org>
Subject [jira] Updated: (FTPSERVER-302) Passive free port returned is not checked if it is really free or not
Date Sat, 30 May 2009 22:29:07 GMT

     [ https://issues.apache.org/jira/browse/FTPSERVER-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Niklas Gustavsson updated FTPSERVER-302:
----------------------------------------

    Fix Version/s: 1.1
                   1.0.2

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


Mime
View raw message