From 4c6bc2ba6834a39e54efdecd8a0c6b7ba6b9bd88 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Tue, 11 Jun 2024 09:28:10 +0200 Subject: [PATCH] frappy.lib.asynconn: handle ConnectionResetError nicely Change-Id: Icba24ffb82369aa78e431d12260f4f3cc795e511 Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/33902 Tested-by: Jenkins Automated Tests Reviewed-by: Markus Zolliker Reviewed-by: Enrico Faulhaber --- frappy/lib/asynconn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappy/lib/asynconn.py b/frappy/lib/asynconn.py index 5bfe0f6..38518b9 100644 --- a/frappy/lib/asynconn.py +++ b/frappy/lib/asynconn.py @@ -219,7 +219,7 @@ class AsynTcp(AsynConn): # timeout while waiting return b'' except ConnectionResetError: - pass # treat the same as gracefully disconnected peer + pass # treat equally as a gracefully disconnected peer # note that when no data is sent on a connection, an interruption might # not be detected within a reasonable time. sending a heartbeat should # help in this case.