You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Eduardo Quintanilla (Jira)" <ji...@apache.org> on 2021/12/14 18:23:00 UTC

[jira] [Commented] (DIRMINA-839) The AvailablePortFinder is overly complex

    [ https://issues.apache.org/jira/browse/DIRMINA-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17459397#comment-17459397 ] 

Eduardo Quintanilla commented on DIRMINA-839:
---------------------------------------------

Is there a recommended alternative for the removed API of AvailablePortFinder?

> 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 Lécharny
>            Priority: Major
>             Fix For: 2.0.6, 3.0.0-DEAD
>
>
> 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 was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org