Skip to content

Auto chmod/unlink when listening to domain socket #724

Closed
@kyriosli

Description

@kyriosli

When using domain socket in net or http.createServer, I have to unlink it before service started and sometimes chmod to '777' after service started. Is it necessary to add option keys such as autoUnlink and chmod that do those jobs automatically?

require('net').createServer().listen({
  "path": "/var/run/app.sock",
  "autoUnlink": true, // boolean, default: false
  "chmod": "777" // string | number ( 0777 or, 0o777)
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    netIssues and PRs related to the net subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions