[issue23430] socketserver.BaseServer.handle_error() should not catch exiting exceptions

Martin Panter report at bugs.python.org
Sat Mar 28 05:59:49 CET 2015


Martin Panter added the comment:

Patch v3:

* Changed the structure of exception handling for the forking server so that there is only one os._exit(status) call site
* Rewrote tests to log results to a temporary file. This avoids sending a string of code to a Python subprocess. I use threading.Event and os.waitpid() to synchronize.
* Tests now call the handle_request() public API, and create a trivial TCP connection to trigger a request.
* Added doc string explaining simple_subprocess()

Let me know what you think.

----------
Added file: http://bugs.python.org/file38717/socketserver-exit.v3.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23430>
_______________________________________


More information about the Python-bugs-list mailing list