提交 bf72cedb 编写于 作者: M MRXLT

bug fix

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