From bf72cedbacfebcf9fc59e6f18661943ad32c29d1 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Fri, 21 Feb 2020 10:14:41 +0800 Subject: [PATCH] bug fix --- python/paddle_serving_server_gpu/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/paddle_serving_server_gpu/__init__.py b/python/paddle_serving_server_gpu/__init__.py index 3ba6f80c..8e1cabb9 100644 --- a/python/paddle_serving_server_gpu/__init__.py +++ b/python/paddle_serving_server_gpu/__init__.py @@ -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, -- GitLab