From 8a40871f3013e7b6168dc5abfd9f602436cfccfd Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 3 Aug 2016 04:58:51 +0000 Subject: [PATCH] protocols.pc_rpc: exclude kernel_invariants from proxying. Fixes #531. --- artiq/protocols/pc_rpc.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/artiq/protocols/pc_rpc.py b/artiq/protocols/pc_rpc.py index 22a1b0131..ca3c356f2 100644 --- a/artiq/protocols/pc_rpc.py +++ b/artiq/protocols/pc_rpc.py @@ -94,6 +94,8 @@ class Client: in the middle of a RPC can break subsequent RPCs (from the same client). """ + kernel_invariants = set() + def __init__(self, host, port, target_name=AutoTarget, timeout=None): self.__socket = socket.create_connection((host, port), timeout) @@ -185,6 +187,8 @@ class AsyncioClient: Concurrent access from different asyncio tasks is supported; all calls use a single lock. """ + kernel_invariants = set() + def __init__(self): self.__lock = asyncio.Lock() self.__reader = None @@ -288,6 +292,8 @@ class BestEffortClient: :param retry: Amount of time to wait between retries when reconnecting in the background. """ + kernel_invariants = set() + def __init__(self, host, port, target_name, firstcon_timeout=1.0, retry=5.0): self.__host = host