Skip to content

Confusing error when listening with domain socket on already-existing path #23917

Closed
@XMB5

Description

@XMB5

When listening with a domain socket on a path that already exists, node should throw the error listen EADDRINUSE: address already in use. However, when writableAll or readableAll is set to true, the error message is confusing and misleading: TypeError: Cannot read property 'fchmod' of null.

Recreate the desired effect by running node -e "require('net').createServer().listen({path:'/'})", and recreate the confusing error message with node -e "require('net').createServer().listen({path:'/',writableAll:true})".

Metadata

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