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 <pedersen+jenkins@frm2.tum.de>
Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
zolliker 2024-06-11 09:28:10 +02:00
parent ce7de98dc7
commit 4c6bc2ba68

View File

@ -219,7 +219,7 @@ class AsynTcp(AsynConn):
# timeout while waiting # timeout while waiting
return b'' return b''
except ConnectionResetError: 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 # note that when no data is sent on a connection, an interruption might
# not be detected within a reasonable time. sending a heartbeat should # not be detected within a reasonable time. sending a heartbeat should
# help in this case. # help in this case.