From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 20 Mar 2020 08:08:52 +0000 (-0700) Subject: bpo-39797 Changes to socketserver.BaseServer's shutdown() method. (GH-18929) X-Git-Tag: v3.8.3rc1~88 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29723368e797f36ba8940f25b6e677852b7313b2;p=thirdparty%2FPython%2Fcpython.git bpo-39797 Changes to socketserver.BaseServer's shutdown() method. (GH-18929) Automerge-Triggered-By: @ned-deily (cherry picked from commit 2de7ac97981c30e9c1001b05a771f52a41772c54) Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com> --- diff --git a/Doc/library/socketserver.rst b/Doc/library/socketserver.rst index 7c8c8d52e03d..232c0616d925 100644 --- a/Doc/library/socketserver.rst +++ b/Doc/library/socketserver.rst @@ -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()