Skip to content

Commit

Permalink
get open port for client_executor. (NVIDIA#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
yhwen authored Mar 9, 2022
1 parent 4c405e9 commit 32ae998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvflare/private/fed/client/client_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

from nvflare.apis.fl_constant import AdminCommandNames, ReturnCode
from nvflare.apis.shareable import Shareable, make_reply
from nvflare.apis.utils.common_utils import get_open_ports
from nvflare.fuel.utils.pipe.file_pipe import FilePipe

from .client_status import ClientStatus, get_status_message


Expand Down Expand Up @@ -147,7 +147,7 @@ def __init__(self, uid, startup):
self.conn_client = None
# self.pool = None

self.listen_port = 6000
self.listen_port = get_open_ports(1)[0]

self.lock = threading.Lock()

Expand Down

0 comments on commit 32ae998

Please sign in to comment.