Skip to content

Discussion: should trio.ssl be imported by default? #199

@njsmith

Description

@njsmith

Currently it is. Glyph says that's bad, because there are cases where you have lots of tiny processes stuffed onto a box and openssl is kinda memory hungry, so it's better not to load the ssl module until you have to.

I'm not super-opposed to making people import trio.ssl, but if we have a high-level trio.open_ssl_tcp_stream(...) function then it may take some awkward work to avoid importing it early. And I'm not a big fan of the idea that calling that function would implicitly cause trio.ssl to materialize in the user-visible namespace.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions