Tim Butler
Tim Butler
Are you still open for a pull request for this issue? I'm encountering this problem running a client under supervisord, when it tries to restart a process or tries to...
It turns out that my particular problem is caused by an orphaned subprocess which has inherited the HTTPServer's listen file descriptor. Calling subprocess.Popen with close_fds=True avoids my problem. https://www.python.org/dev/peps/pep-0446/#id11 indicates...
I have not been able to reproduce the problem beyond having an orphan child process keeping the HTTPServer's listen fd open. I confirmed that the python HTTPServer already *does* set...
Instead of setting SO_REUSEADDR (which is already set), I think start_http_server should set FD_CLOEXEC, to avoid exec'd subprocesses inheriting the fd and reducing the chance of an "Address already in...
I've been living with my supervisord workaround described in my last post. I had made my proposed change in my own build, which appeared also to work, however I never...