From 37fe53649056d19fb89a2d3ee6d9c9a19a2048a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=B7=E5=8C=85=E8=9B=8B=E6=89=A3=E8=82=89?= Date: Mon, 9 Sep 2019 13:28:16 +0800 Subject: [PATCH] Enable socket_timeout on unix_socket --- thriftpy2/rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thriftpy2/rpc.py b/thriftpy2/rpc.py index 3de60e7f..bb6e88b2 100644 --- a/thriftpy2/rpc.py +++ b/thriftpy2/rpc.py @@ -36,7 +36,7 @@ def make_client(service, host="localhost", port=9090, unix_socket=None, host = parsed_url.hostname or host port = parsed_url.port or port if unix_socket: - socket = TSocket(unix_socket=unix_socket) + socket = TSocket(unix_socket=unix_socket, socket_timeout=timeout) if certfile: warnings.warn("SSL only works with host:port, not unix_socket.") elif host and port: