Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asyncio backend: SSL doesn't work #330

Open
Lorak-mmk opened this issue Jun 6, 2024 · 0 comments
Open

Asyncio backend: SSL doesn't work #330

Lorak-mmk opened this issue Jun 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Lorak-mmk
Copy link

When using AsyncioConnection it's not possible to connect to Scylla using SSL - the connection hangs and eventually timeouts.
The issue is that asyncio methods like sock_sendall don't work with SSLSocket - they explicitly check the type of the socket here (definition of this function)
Another issue is that this exception is swallowed somewhere, so we don't see it in the terminal - there probably should be a catch-all block that prints the exception.

The solution would probably be to rework AsyncioConnection.__init__ and other methods a bit to use https://docs.python.org/3/library/asyncio-stream.html#asyncio.open_connection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant