From 561662f89e52bd5dc6b9ed8a4c63df02481e57d4 Mon Sep 17 00:00:00 2001 From: "Jarisch, Ferdinand" Date: Tue, 10 Oct 2023 10:40:12 +0200 Subject: [PATCH] fix(doip): Do not raise TimeoutError when receiving DoIP-NACK acc80e74b2a3f79ad13fdf75f52a16bbda6e568b moved raising TargetUnreachable NACKs to the higher-level write function, but erroneously introduced raising a TimeOutError instead. --- src/gallia/transports/doip.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallia/transports/doip.py b/src/gallia/transports/doip.py index 8953a9be7..6f1e088f3 100644 --- a/src/gallia/transports/doip.py +++ b/src/gallia/transports/doip.py @@ -678,8 +678,7 @@ async def write( raise e # TargetUnreachable can be just a temporary issue. Thus, we do not raise # BrokenPipeError but instead ignore it here and let upper layers handle - # missing responses (i.e. raise a TimeoutError instead) + # missing responses logger.debug("DoIP message was ACKed with TargetUnreachable") - raise asyncio.TimeoutError from e return len(data)