Skip to content

Commit

Permalink
Merge pull request #83 from ryerh/master
Browse files Browse the repository at this point in the history
Enable socket_timeout on unix_socket
  • Loading branch information
ethe authored Sep 9, 2019
2 parents ce676f6 + 37fe536 commit 0ef31b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thriftpy2/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0ef31b8

Please sign in to comment.