You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by GitBox <gi...@apache.org> on 2022/03/18 04:17:48 UTC

[GitHub] [incubator-linkis] saLeox opened a new issue #1749: [Issue] Enable to specify the port range of engine conn(EC)

saLeox opened a new issue #1749:
URL: https://github.com/apache/incubator-linkis/issues/1749


   ### Search before asking
   
   - [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues.
   
   
   ### Linkis Component
   
   linkis-cg-manager
   
   ### What happened + What you expected to happen
   
   Right now, the port range for engine conn is from 0 to 65535
   ```
     private def findAvailPort(): Int = {
       val socket = new ServerSocket(0)
       Utils.tryFinally(socket.getLocalPort)(IOUtils.closeQuietly(socket))
     }
   ```
   It might be better if the port range can be specified by user by configuration.
   
   ### Relevent platform
   
   N/A
   
   ### Reproduction script
   
   N/A
   
   ### Anything else
   
   N/A
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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