Skip to content

dns: don't skip getaddrino/getnameinfo when c-ares init fails #8966

@bnoordhuis

Description

@bnoordhuis

#8710 makes process.binding('cares_wrap') throw a JS exception instead of aborting when ares_library_init() or ares_init_options() fail.

Maybe we can do better. We can still bring up the bindings for getaddrinfo and getnameinfo because those don't depend on c-ares (although if c-ares fails, there is a goodly chance the others won't work either.)

Policy question: do we think it's better to quit or keep on trucking in a franken-init state?

Metadata

Metadata

Assignees

No one assigned

    Labels

    dnsIssues and PRs related to the dns subsystem.feature requestIssues that request new features to be added to Node.js.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions