Please sign in to comment.
Close sockets when children exit to avoid file descriptor leaks.
Not closing the socket connections leaves open files on the system. On a system with fd limit at 1024 and 15 cores we quickly reached the limit after a few children restarts; resulting in the master process raising an (EMFILE, Too many open files) exception. The leaking was checked with lsof.
- Loading branch information...