You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto chmod/unlink when listening to domain socket #724
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?
The reason neither options are supported right now is because of race conditions:
With chmod, there is a race window between the call to bind() and chmod().
With unlink(), the problem is that the socket may be shared with other processes and there is no 100% foolproof method of detecting whether it's safe to unlink (i.e. whether this process is the last process.)
Auto-unlink used to be the default but was removed because of issues with the cluster module.
Activity
bnoordhuis commentedon Feb 5, 2015
The reason neither options are supported right now is because of race conditions:
Auto-unlink used to be the default but was removed because of issues with the cluster module.
cjihrig commentedon Feb 15, 2015
Looks like this should be closed as won't fix.