Skip to content

Commit 7016579

Browse files
committed
doc: add warning about handler threads which are left behind
1 parent 1a52c29 commit 7016579

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
extensions = [
3939
"sphinx.ext.autodoc",
4040
"sphinx.ext.intersphinx",
41+
"sphinx.ext.autosectionlabel",
4142
]
4243

4344
intersphinx_mapping = {

doc/howto.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,3 +605,10 @@ besides the main one.
605605
This will start and stop the server for each tests, which causes about 0.5
606606
seconds waiting when the server is stopped. It won't override the ``httpserver``
607607
fixture so you can keep the original single-threaded behavior.
608+
609+
.. warning::
610+
Handler threads which are still running when the test is finished, will be
611+
left behind and won't be join()ed between the tests. If you want to ensure
612+
that all threads are properly cleaned up and you want to wait for them,
613+
consider using the second option (:ref:`Creating a different httpserver fixture`)
614+
described above.

0 commit comments

Comments
 (0)