-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a function `_find_available_port` to find a port in the range [50051, 60000] that is available to open a listening socket on. Use this function to automatically select a port when either `launch_session` or `session` are used to launch a gRPC server session and `port_num` is `None` (the default).
- Loading branch information
1 parent
d023cc5
commit acba55c
Showing
2 changed files
with
47 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters