Skip to content

Commit 37fe536

Browse files
authored
Enable socket_timeout on unix_socket
1 parent ce676f6 commit 37fe536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thriftpy2/rpc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def make_client(service, host="localhost", port=9090, unix_socket=None,
3636
host = parsed_url.hostname or host
3737
port = parsed_url.port or port
3838
if unix_socket:
39-
socket = TSocket(unix_socket=unix_socket)
39+
socket = TSocket(unix_socket=unix_socket, socket_timeout=timeout)
4040
if certfile:
4141
warnings.warn("SSL only works with host:port, not unix_socket.")
4242
elif host and port:

0 commit comments

Comments
 (0)