Skip to content

Commit 64937d3

Browse files
bpo-39797 Changes to socketserver.BaseServer's shutdown() method. (GH-18929)
Automerge-Triggered-By: @ned-deily (cherry picked from commit 2de7ac9) Co-authored-by: amaajemyfren <[email protected]>
1 parent 4e3a7f9 commit 64937d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/socketserver.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ Server Objects
237237
.. method:: shutdown()
238238

239239
Tell the :meth:`serve_forever` loop to stop and wait until it does.
240+
:meth:`shutdown` must be called while :meth:`serve_forever` is running in a
241+
different thread otherwise it will deadlock.
240242

241243

242244
.. method:: server_close()

0 commit comments

Comments
 (0)