You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Gusti Benawi (JIRA)" <ji...@apache.org> on 2009/05/14 17:04:45 UTC

[jira] Updated: (FTPSERVER-302) Passive free port returned is not checked if it is really free or not

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

Gusti Benawi updated FTPSERVER-302:
-----------------------------------

    Summary: Passive free port returned is not checked if it is really free or not  (was: Passive free port is not checked)

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