bpo-30830: logging.config.listen() calls server_close() by vstinner · Pull Request #3524 · python/cpython (original) (raw)

The ConfigSocketReceiver.serve_until_stopped() method from
logging.config.listen() now calls server_close() (of
socketserver.ThreadingTCPServer) rather than closing manually the
socket.

While this change has no effect yet, it will help to prevent dangling
threads once ThreadingTCPServer.server_close() will join spawned
threads (bpo-31233).

https://bugs.python.org/issue30830