Skip to content

Commit c28b938

Browse files
committedFeb 2, 2016
Client: add note about timeout sideeffects
1 parent f7df393 commit c28b938

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎artiq/protocols/pc_rpc.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ class Client:
9595
(default), ``0`` for non-blocking, and a finite value to raise
9696
``socket.timeout`` if an operation does not complete within the
9797
given time. See also ``socket.create_connection()`` and
98-
``socket.settimeout()`` in the Python standard library.
98+
``socket.settimeout()`` in the Python standard library. A timeout
99+
in the middle of a RPC can break subsequent RPCs (from the same
100+
client).
99101
"""
100102
def __init__(self, host, port, target_name=AutoTarget, timeout=None):
101103
self.__socket = socket.create_connection((host, port), timeout)

0 commit comments

Comments
 (0)
Please sign in to comment.