mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-31233, bpo-31151: Document socketserver changes (#5417)
socketserver.ForkingMixIn.server_close() and socketserver.ThreadingMixIn.server_close() now waits until all child processes and non-daemonic threads complete.
This commit is contained in:
parent
2914bb32e2
commit
db8189bb8d
2 changed files with 23 additions and 0 deletions
|
@ -115,6 +115,21 @@ server classes.
|
|||
:class:`ForkingMixIn` and the Forking classes mentioned below are
|
||||
only available on POSIX platforms that support :func:`~os.fork`.
|
||||
|
||||
:meth:`socketserver.ForkingMixIn.server_close` waits until all child
|
||||
processes complete.
|
||||
|
||||
:meth:`socketserver.ThreadingMixIn.server_close` waits until all non-daemon
|
||||
threads complete. Use daemonic threads by setting
|
||||
:data:`ThreadingMixIn.daemon_threads` to ``True`` to not wait until threads
|
||||
complete.
|
||||
|
||||
.. versionchanged:: 3.7
|
||||
|
||||
:meth:`socketserver.ForkingMixIn.server_close` and
|
||||
:meth:`socketserver.ThreadingMixIn.server_close` now waits until all
|
||||
child processes and non-daemonic threads complete.
|
||||
|
||||
|
||||
.. class:: ForkingTCPServer
|
||||
ForkingUDPServer
|
||||
ThreadingTCPServer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue