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
Confusing error when listening with domain socket on already-existing path #23917
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})".
Activity
oyyd commentedon Oct 27, 2018
Because it failed to create
Pipeon/and the "error" event would have been emitted in the next tick. I would like to submit a PR to fix this.net: `net.Server.listen()` avoid operations on `null` when fail
net: `net.Server.listen()` avoid operations on `null` when fail
net: `net.Server.listen()` avoid operations on `null` when fail
net: `net.Server.listen()` avoid operations on `null` when fail
net: `net.Server.listen()` avoid operations on `null` when fail
net: `net.Server.listen()` avoid operations on `null` when fail