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
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.
When using domain socket in
net
orhttp
.createServer, I have tounlink
it before service started and sometimeschmod
to'777'
after service started. Is it necessary to add option keys such asautoUnlink
andchmod
that do those jobs automatically?The text was updated successfully, but these errors were encountered: