Skip to content

Asyncio backend: SSL doesn't work #330

Open
@Lorak-mmk

Description

@Lorak-mmk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions