From e7b7b4cd6b1bee0f5383255ea9ffe2f2ab1571bf Mon Sep 17 00:00:00 2001 From: meejah Date: Wed, 7 Apr 2021 16:31:32 -0600 Subject: [PATCH] unexpected hangup --- ws_client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ws_client.py b/ws_client.py index f6219da..b0407bf 100644 --- a/ws_client.py +++ b/ws_client.py @@ -43,6 +43,9 @@ class RelayEchoClient(WebSocketClientProtocol): self.factory.ready.callback(None) else: self._received += data + if False: + # test abrupt hangup from receiving side + self.transport.loseConnection() def onClose(self, wasClean, code, reason): print(">onClose", wasClean, code, reason)