Skip to content

Commit 2de7ac9

Browse files
authored
bpo-39797 Changes to socketserver.BaseServer's shutdown() method. (GH-18929)
Automerge-Triggered-By: @ned-deily
1 parent 7bf069b commit 2de7ac9

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)