]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39797 Changes to socketserver.BaseServer's shutdown() method. (GH-18929)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 20 Mar 2020 08:08:47 +0000 (01:08 -0700)
committerGitHub <noreply@github.com>
Fri, 20 Mar 2020 08:08:47 +0000 (01:08 -0700)
Automerge-Triggered-By: @ned-deily
(cherry picked from commit 2de7ac97981c30e9c1001b05a771f52a41772c54)

Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
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()