Fix port number overflow (#2826)
This commit is contained in:
@@ -928,7 +928,10 @@ class PortArgs:
|
||||
while True:
|
||||
if is_port_available(port):
|
||||
break
|
||||
port += 42
|
||||
if port < 60000:
|
||||
port += 42
|
||||
else:
|
||||
port -= 43
|
||||
|
||||
return PortArgs(
|
||||
tokenizer_ipc_name=tempfile.NamedTemporaryFile(delete=False).name,
|
||||
|
||||
Reference in New Issue
Block a user