From fe77161b8991c9ecec1e2a4c4ff1e9770b321646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20V=C3=A1rady?= Date: Sat, 14 Dec 2024 15:02:24 +0100 Subject: [PATCH] fixup! light: initial TLS destination support --- tests/light/src/common/network.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/light/src/common/network.py b/tests/light/src/common/network.py index e3c2d6c63..cdd805242 100644 --- a/tests/light/src/common/network.py +++ b/tests/light/src/common/network.py @@ -43,15 +43,15 @@ async def start(self): async def stop(self): logger.debug("Shutting down SingleConnectionStreamServer") - try: - await self.close_client() - await self._stop_server() - except ConnectionResetError: - pass + await self.close_client() + await self._stop_server() async def close_client(self): """After a client connection is accepted, new connections will be rejected until this method is called""" - await self._client.close() + try: + await self._client.close() + except ConnectionResetError: # remove this after fixing two way shutdown (SSL_shutdown) in AxoSyslog + pass async def _create_client(self): return self.Client()