Charles-François Natali <neolo...@free.fr> added the comment: Thanks for reporting this, the current behaviour is clearly wrong. The child process doesn't need to - and shouldn't - inherit the server socket. The custom idiom when writting such code is to close the new socket (well, in TCP) in the parent process, and close the server socket in the child process. That's what the attached patch does. Since I really doubt anyone using socketserver ever used the server's socket from the handler, this shouldn't be a problem for existing code (and the server's socket was never documented to be usable from the request handler).
---------- keywords: +needs review, patch nosy: +charles-francois.natali, haypo stage: test needed -> patch review Added file: http://bugs.python.org/file22045/ss_fork_close.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5715> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com