From c28b938471d831d9ee5d7a057482793b37a77917 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Tue, 2 Feb 2016 15:42:47 -0700 Subject: [PATCH] Client: add note about timeout sideeffects --- artiq/protocols/pc_rpc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/protocols/pc_rpc.py b/artiq/protocols/pc_rpc.py index a861b48cd..7f6140ecd 100644 --- a/artiq/protocols/pc_rpc.py +++ b/artiq/protocols/pc_rpc.py @@ -95,7 +95,9 @@ class Client: (default), ``0`` for non-blocking, and a finite value to raise ``socket.timeout`` if an operation does not complete within the given time. See also ``socket.create_connection()`` and - ``socket.settimeout()`` in the Python standard library. + ``socket.settimeout()`` in the Python standard library. A timeout + in the middle of a RPC can break subsequent RPCs (from the same + client). """ def __init__(self, host, port, target_name=AutoTarget, timeout=None): self.__socket = socket.create_connection((host, port), timeout)