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 <rep...@bugs.python.org>
<http://bugs.python.org/issue23430>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to