Skip to content

pass through dns errors to the caller #740

@luke-jr

Description

@luke-jr

There's no way to determine why evhttp_bind_socket_with_handle failed if getaddrinfo returns an error.

Fixing this is complicated by the fact that getaddrinfo returns errors of its own type, which could potentially overlap with standard socket error values; therefore, it wouldn't be sufficient to simply EVUTIL_SET_SOCKET_ERROR with the return value.

(Note that our application actually needs the specific getaddrinfo failure reason; see bitcoin/bitcoin#14968)

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