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

Emmanuel Lécharny commented on DIRMINA-839:
-------------------------------------------

@Eduardo the function hasn't been removed. The internal code now do a ```new 
ServerSocket( 0 ).getLocalPort();``` to find an available port.

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to