提交 64a6772d 编写于 作者: M MRXLT

bug fix

上级 c9b4c7d4
......@@ -234,7 +234,7 @@ class Server(object):
def check_port(self, port):
with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as sock:
sock.settimeout(2)
result = sock.connect_ex('127.0.0.1', port)
result = sock.connect_ex(('127.0.0.1', port))
if result != 0:
return True
else:
......@@ -258,8 +258,7 @@ class Server(object):
"-workflow_path {} " \
"-workflow_file {} " \
"-bthread_concurrency {} " \
"-gpuid {} " \
"-v {} ".format(
"-gpuid {} ".format(
self.bin_path,
self.workdir,
self.infer_service_fn,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册