Skip to content

Make getaddrinfo pluggable #159

@njsmith

Description

@njsmith

APIs that perform name lookups should take an argument (defaulting to trio.socket.getaddrinfo) specifying the function to use for looking up names. This is useful for testing, and it's useful for folks who might want to use some other name lookup code (e.g. an async dns library like pycares).

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