You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2011/06/14 18:13:48 UTC
[jira] [Created] (DIRMINA-839) The AvailablePortFinder is overly
complex
The AvailablePortFinder is overly complex
-----------------------------------------
Key: DIRMINA-839
URL: https://issues.apache.org/jira/browse/DIRMINA-839
Project: MINA
Issue Type: Improvement
Affects Versions: 2.0.4
Reporter: Emmanuel Lecharny
Fix For: 2.0.5
We have a helper method that returns an availble port, doing a loop. This is probably overly complex, when a simple call to :
new ServerSocket( 0 ).getLocalPort()
will return the first available port.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (DIRMINA-839) The AvailablePortFinder is overly
complex
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny resolved DIRMINA-839.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.6
Considered as fixed. We could remove the method in 3.0
> The AvailablePortFinder is overly complex
> -----------------------------------------
>
> Key: DIRMINA-839
> URL: https://issues.apache.org/jira/browse/DIRMINA-839
> Project: MINA
> Issue Type: Improvement
> Affects Versions: 2.0.4
> Reporter: Emmanuel Lecharny
> Fix For: 2.0.6, 3.0.0-trunk
>
>
> We have a helper method that returns an availble port, doing a loop. This is probably overly complex, when a simple call to :
> new ServerSocket( 0 ).getLocalPort()
> will return the first available port.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DIRMINA-839) The AvailablePortFinder is overly
complex
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409369#comment-13409369 ]
Emmanuel Lecharny commented on DIRMINA-839:
-------------------------------------------
A minimal modification made in 2.0.5 : http://svn.apache.org/viewvc?rev=1359088&view=rev
> The AvailablePortFinder is overly complex
> -----------------------------------------
>
> Key: DIRMINA-839
> URL: https://issues.apache.org/jira/browse/DIRMINA-839
> Project: MINA
> Issue Type: Improvement
> Affects Versions: 2.0.4
> Reporter: Emmanuel Lecharny
> Fix For: 3.0.0-trunk
>
>
> We have a helper method that returns an availble port, doing a loop. This is probably overly complex, when a simple call to :
> new ServerSocket( 0 ).getLocalPort()
> will return the first available port.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DIRMINA-839) The AvailablePortFinder is overly
complex
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny updated DIRMINA-839:
--------------------------------------
Fix Version/s: (was: 2.0.5)
> The AvailablePortFinder is overly complex
> -----------------------------------------
>
> Key: DIRMINA-839
> URL: https://issues.apache.org/jira/browse/DIRMINA-839
> Project: MINA
> Issue Type: Improvement
> Affects Versions: 2.0.4
> Reporter: Emmanuel Lecharny
> Fix For: 3.0.0-trunk
>
>
> We have a helper method that returns an availble port, doing a loop. This is probably overly complex, when a simple call to :
> new ServerSocket( 0 ).getLocalPort()
> will return the first available port.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DIRMINA-839) The AvailablePortFinder is overly
complex
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny updated DIRMINA-839:
--------------------------------------
Fix Version/s: 3.0.0-trunk
It's difficult to remove this class, as it may break some user's code. Right now, the only modification done is to return an available port using the new ServerSocket( 0 ).getLocalPort() method in the getNextAvailable() method.
> The AvailablePortFinder is overly complex
> -----------------------------------------
>
> Key: DIRMINA-839
> URL: https://issues.apache.org/jira/browse/DIRMINA-839
> Project: MINA
> Issue Type: Improvement
> Affects Versions: 2.0.4
> Reporter: Emmanuel Lecharny
> Fix For: 3.0.0-trunk
>
>
> We have a helper method that returns an availble port, doing a loop. This is probably overly complex, when a simple call to :
> new ServerSocket( 0 ).getLocalPort()
> will return the first available port.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira