Skip to content

Commit

Permalink
Fix SSL (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrslev authored Aug 27, 2024
1 parent c41f156 commit 927c6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stompman/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 927c6ba

Please sign in to comment.