From 01d8cc7ab66745d4371820334619f3ecd4ca2881 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Thu, 23 Jun 2022 12:49:07 -0400 Subject: [PATCH] Put the attribute on the correct object. --- src/allmydata/protocol_switch.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/allmydata/protocol_switch.py b/src/allmydata/protocol_switch.py index 2d2590977..d26bad745 100644 --- a/src/allmydata/protocol_switch.py +++ b/src/allmydata/protocol_switch.py @@ -44,12 +44,7 @@ class FoolscapOrHttp(Protocol, metaclass=PretendToBeNegotiation): self._buffer: bytes = b"" def __setattr__(self, name, value): - if name in { - "_foolscap", - "_buffer", - "transport", - "__class__", - }: + if name in {"_foolscap", "_buffer", "transport", "__class__", "_timeout"}: object.__setattr__(self, name, value) else: setattr(self._foolscap, name, value)