This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaajemyfren
Recipients amaajemyfren, docs@python
Date 2020-02-29.13:04:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582981466.61.0.0832265256128.issue39797@roundup.psfhosted.org>
In-reply-to
Content
When a subclass of socketserver.BaseServer is running after calling serve_forever() and needs to be shutdown, it may be shut down by sending a [shutdown()](https://docs.python.org/3/library/socketserver.html#socketserver.BaseServer.shutdown). The thing is though that the shutdown() call must be run in a different thread than the one where the serve_forever() was called otherwise it will deadlock. This is documented in the [code](https://github.com/python/cpython/blob/3.8/Lib/socketserver.py#L244) but not in the documentation. It should be in the documentation as well as it is not obvious.
History
Date User Action Args
2020-02-29 13:04:26amaajemyfrensetrecipients: + amaajemyfren, docs@python
2020-02-29 13:04:26amaajemyfrensetmessageid: <1582981466.61.0.0832265256128.issue39797@roundup.psfhosted.org>
2020-02-29 13:04:26amaajemyfrenlinkissue39797 messages
2020-02-29 13:04:26amaajemyfrencreate