django1/django/core/handlers
Allan Feldman 36fa071d6e Fixed #32889 -- Allowed per-request sync_to_async context in ASGIHandler .
By using a asgiref's ThreadSensitiveContext context manager, requests
will be able to execute independently of other requests when sync work
is involved.

Prior to this commit, a single global thread was used to execute any
sync work independent of the request from which that work was scheduled.
This could result in contention for the global sync thread in the case
of a slow sync function.

Requests are now isolated to their own sync thread.
2021-07-01 12:13:19 +02:00
..
__init__.py
asgi.py Fixed #32889 -- Allowed per-request sync_to_async context in ASGIHandler . 2021-07-01 12:13:19 +02:00
base.py Fixed #32299 -- Prevented mutating handlers when processing middlewares marking as unused in an async context. 2020-12-29 09:04:35 +01:00
exception.py Removed unreachable SystemExit check. 2021-01-19 07:04:53 +01:00
wsgi.py Fixed #31240 -- Properly closed FileResponse when wsgi.file_wrapper is used. 2020-02-11 20:39:12 +01:00