]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39797 Changes to socketserver.BaseServer's shutdown() method. (GH-18929)
authoramaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
Fri, 20 Mar 2020 08:03:18 +0000 (11:03 +0300)
committerGitHub <noreply@github.com>
Fri, 20 Mar 2020 08:03:18 +0000 (01:03 -0700)
Automerge-Triggered-By: @ned-deily
Doc/library/socketserver.rst

index 7c8c8d52e03d95461b425ba5e80af3cb73d78a4a..232c0616d925dc00a6632a847b024a1127e0c8f7 100644 (file)
@@ -237,6 +237,8 @@ Server Objects
    .. method:: shutdown()
 
       Tell the :meth:`serve_forever` loop to stop and wait until it does.
+      :meth:`shutdown` must be called while :meth:`serve_forever` is running in a
+      different thread otherwise it will deadlock.
 
 
    .. method:: server_close()