[BugFix] Reject invalid data-parallel RPC ports (#51469)

Signed-off-by: aoshen02 <aoshen@inferact.ai>
Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
aoshen02
2026-08-08 12:23:26 +08:00
committed by GitHub
co-authored by OpenAI Codex
parent d21fed9522
commit 22a175921c
4 changed files with 24 additions and 8 deletions
+5 -5
View File
@@ -1165,11 +1165,11 @@ def launch_core_engines(
if parallel_config.enable_elastic_ep:
handshake_local_only = False
# Preserve "port=0 means auto-pick" for the handshake address, which
# is consumed by engines spawned in this process and so cannot defer
# port resolution to bind time.
rpc_port = parallel_config.data_parallel_rpc_port or get_open_port()
handshake_address = get_engine_client_zmq_addr(handshake_local_only, host, rpc_port)
handshake_address = get_engine_client_zmq_addr(
handshake_local_only,
host,
parallel_config.data_parallel_rpc_port,
)
if local_engines_only and dp_rank > 0:
assert not handshake_local_only