]> granicus.if.org Git - python/commit
bpo-30830: logging.config.listen() calls server_close() (#3524)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 13 Sep 2017 08:44:08 +0000 (01:44 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Sep 2017 08:44:08 +0000 (01:44 -0700)
commit97d7e65dfed1d42d40d9bc2f630af56240555f02
tree94cd90a3f53521660559e502f3ec76f803434d36
parentb8d1b9d7c697dd0401491b6d43047acbaf425f02
bpo-30830: logging.config.listen() calls server_close() (#3524)

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).
Lib/logging/config.py