mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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).
This commit is contained in:
parent
b8d1b9d7c6
commit
97d7e65dfe
1 changed files with 1 additions and 1 deletions
|
@ -887,7 +887,7 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT, verify=None):
|
|||
logging._acquireLock()
|
||||
abort = self.abort
|
||||
logging._releaseLock()
|
||||
self.socket.close()
|
||||
self.server_close()
|
||||
|
||||
class Server(threading.Thread):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue