[New-bugs-announce] [issue23430] socketserver.BaseServer.handle_error() should not catch exiting exceptions

Martin Panter report at bugs.python.org
Tue Feb 10 04:34:08 CET 2015


New submission from Martin Panter:

I propose changing the socket servers to not suppress exceptions that are meant to exit the interpreter. This is most applicable to single threaded servers, but my patch does the same thing for multithreading servers. It no longer catches exceptions that are not derived from the Exception class, such as KeyboardInterrupt and SystemExit. The shutdown_request() method is still called in all cases though.

I also added a test for the forking server’s handle_error() method.

----------
components: Library (Lib)
files: socketserver-exit.patch
keywords: patch
messages: 235662
nosy: vadmium
priority: normal
severity: normal
status: open
title: socketserver.BaseServer.handle_error() should not catch exiting exceptions
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file38074/socketserver-exit.patch

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


More information about the New-bugs-announce mailing list