-
Notifications
You must be signed in to change notification settings - Fork 7.3k
domain sockets not cleaning up after themselves #3540
Comments
My original gist: https://gist.github.com/9f93cdcd3a77b9142e51 |
That's by design. Older versions of node used to unlink the socket but that was subject to heinous race conditions in multi-process setups. I realize that's never been documented on the API changes page. Well, it is now. :-) |
@bnoordhuis Does the socket file get removed when you close() the server, or when node gracefully exits? |
@piscisaureus |
@bnoordhuis Yeah, that will break in a cluster scenario. |
@bnoordhuis Could a note of this behavior be added to the regular documentation as well? |
I got the same problem,i do not know why that was by design that node won't unlink path when exit in any case. |
This one's pleasantly easy to reproduce:
Running this more than once will throw
Error: listen EADDRINUSE
. The file system artifact is not getting cleaned up.The text was updated successfully, but these errors were encountered: