Skip to content

Commit

Permalink
fixup! light: initial TLS destination support
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAnno committed Dec 14, 2024
1 parent 3dce5b2 commit fe77161
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/light/src/common/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fe77161

Please sign in to comment.