Skip to content

bpo-30830: logging.config.listen() calls server_close()#3524

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:logging_server_close
Sep 13, 2017
Merged

bpo-30830: logging.config.listen() calls server_close()#3524
vstinner merged 1 commit intopython:masterfrom
vstinner:logging_server_close

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Sep 13, 2017

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

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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants