From 927c6bafdb8e0049bbd2a734e4ff5b80d0bf5e1c Mon Sep 17 00:00:00 2001 From: Lev Vereshchagin Date: Tue, 27 Aug 2024 17:04:38 +0300 Subject: [PATCH] Fix SSL (#68) --- stompman/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stompman/connection.py b/stompman/connection.py index 9de7e10..46f7793 100644 --- a/stompman/connection.py +++ b/stompman/connection.py @@ -58,7 +58,7 @@ async def connect( ssl: Literal[True] | SSLContext | None, ) -> Self | None: try: - reader, writer = await asyncio.wait_for(asyncio.open_connection(host, port), timeout=timeout) + reader, writer = await asyncio.wait_for(asyncio.open_connection(host, port, ssl=ssl), timeout=timeout) except (TimeoutError, ConnectionError, socket.gaierror): return None else: