I am trying to implement a Twisted server made up of multiple processes which all listen on a UNIX socket. I have tried enabling the SO_REUSEADDR and SO_REUSEPORT options for the socket and used the following endpoint: unix:address=/tmp/web.sock:lockfile=0.
This works fine with one process, however, when I spawn multiple ones, there still seems to be only one listening on that socket. Is there something I am doing wrong in my current setup?
Copyright Notice:Content Author:「Spektor」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/44828151/reusing-unix-sockets-with-twisted-over-multiple-processes