summaryrefslogtreecommitdiff
path: root/docs/release-notes
diff options
context:
space:
mode:
authorGraham Dumpleton <Graham.Dumpleton@gmail.com>2020-10-30 13:24:04 +1100
committerGraham Dumpleton <Graham.Dumpleton@gmail.com>2020-10-30 13:24:04 +1100
commit5598d0fe515dd942f9df88337da518110756a6da (patch)
tree6fa8183e2cccb5a7b4bc14e74715571971c72c91 /docs/release-notes
parentcdcd45f1d02ab185b7fcfa14f54df8ca7a208c66 (diff)
downloadmod_wsgi-5598d0fe515dd942f9df88337da518110756a6da.tar.gz
Add workaround to force importing of threading module in main thread.
Diffstat (limited to 'docs/release-notes')
-rw-r--r--docs/release-notes/version-4.8.0.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/release-notes/version-4.8.0.rst b/docs/release-notes/version-4.8.0.rst
index 24a862d..a2fe66d 100644
--- a/docs/release-notes/version-4.8.0.rst
+++ b/docs/release-notes/version-4.8.0.rst
@@ -37,3 +37,14 @@ Bugs Fixed
For non Window systems a workaround had been used to resolve the problem,
but the same workaround has never worked on Windows. The change in this
version tries a different workaround for Windows environments.
+
+* Added a workaround for the fact that Python doesn't actually set the
+ ``_main_thread`` attribute of the ``threading`` module to the main thread
+ which initialized the main interpreter or sub interpreter, but the first
+ thread that imports the ``threading`` module. In an embedded system such
+ as mod_wsgi it could be a request thread, not the main thread, that would
+ import the ``threading`` module.
+
+ This issue was causing the ``asgiref`` module used in Django to fail when
+ using ``signal.set_wakeup_fd()`` as code was thinking it was in the main
+ thread when it wasn't. See https://github.com/django/asgiref/issues/143.