Skip to content

TCP connection fails on systems without IPv6 support when connecting to a host that has an IPv6 address #1809

Closed
@lilydjwg

Description

getaddrinfo will return IPv6 addresses when the system doesn't support it, and Tornado will then fail to connect to the IPv6 address with this error (I get a report for my project here):

OSError: [Errno 97] Address family not supported by protocol

I see in #593 AI_ADDRCONFIG was removed from bind_sockets, and in #823 Tornado just ignores the unsupported protocol. But this is about connect, not bind. What do you think, to use AI_ADDRCONFIG or just ignore the error? There's currently no way to pass the flags to resolvers though.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions