You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Allen Firstenberg (JIRA)" <ji...@apache.org> on 2011/06/15 00:28:47 UTC

[jira] [Created] (FTPSERVER-419) PassivePorts.reserveNextPort() is not synchronized

PassivePorts.reserveNextPort() is not synchronized
--------------------------------------------------

                 Key: FTPSERVER-419
                 URL: https://issues.apache.org/jira/browse/FTPSERVER-419
             Project: FtpServer
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.5
            Reporter: Allen Firstenberg


PassivePorts.reserveNextPort() is not synchronized, nor is there a synchronized block inside it.  Both it and releasePort(int) should probably be synchronized on either this or a common sync object to ensure there is no race condition.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (FTPSERVER-419) PassivePorts.reserveNextPort() is not synchronized

Posted by "Niklas Gustavsson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FTPSERVER-419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niklas Gustavsson closed FTPSERVER-419.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.0
                   1.0.6
         Assignee: Niklas Gustavsson

Fixed in rev 1137251 and 1137252.

> PassivePorts.reserveNextPort() is not synchronized
> --------------------------------------------------
>
>                 Key: FTPSERVER-419
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-419
>             Project: FtpServer
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.5
>            Reporter: Allen Firstenberg
>            Assignee: Niklas Gustavsson
>             Fix For: 1.0.6, 1.1.0
>
>
> PassivePorts.reserveNextPort() is not synchronized, nor is there a synchronized block inside it.  Both it and releasePort(int) should probably be synchronized on either this or a common sync object to ensure there is no race condition.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira