summaryrefslogtreecommitdiff
path: root/tests/asgi
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #33738 -- Allowed handling ASGI http.disconnect in long-lived requests.th3nn3ss2023-04-032-0/+92
|
* Fixed #34428 -- Made ASGIStaticFilesHandler adapt response to async iterator.Carlton Gibson2023-03-211-1/+0
| | | Bug in 0bd2c0c9015b53c41394a1c0989afbfd94dc2830.
* Fixed some typos in comments, docstrings, and tests.Liyang Zhang2023-03-201-1/+1
|
* Fixed #33735 -- Added async support to StreamingHttpResponse.Carlton Gibson2022-12-221-0/+11
| | | | | Thanks to Florian Vazelle for initial exploratory work, and to Nick Pope and Mariusz Felisiak for review.
* Refs #33173, Refs #33755 -- Fixed ResourceWarning from unclosed files in ↵Carlton Gibson2022-08-041-0/+8
| | | | ASGI tests.
* Fixed #33755 -- Moved ASGI body-file cleanup into request class.Jonas Lundberg2022-06-092-2/+21
|
* Fixed #33754 -- Fixed crash with prematurely closed ASGI request body.Jonas Lundberg2022-05-312-0/+19
| | | | Regression in 441103a04d1d167dc870eaaf90e3fba974f67c93.
* Removed stale Windows asyncio test skips.Carlton Gibson2022-04-141-5/+0
| | | | | Underlying issue was fixed in Python 3.8.1, now many versions ago. https://bugs.python.org/issue38563
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-072-93/+100
|
* Fixed #32889 -- Allowed per-request sync_to_async context in ASGIHandler .Allan Feldman2021-07-012-7/+49
| | | | | | | | | | | | | 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.
* Refs #32394 -- Changed STATIC_URL/MEDIA_URL to relative paths in tests and ↵Markus Holtermann2021-02-061-1/+1
| | | | docs where appropriate.
* Fixed #31550 -- Adjusted ASGI test_file_response for various Windows content ↵Christopher Keith2020-11-051-8/+17
| | | | types.
* Fixed #31594 -- Added ASGIStaticFilesHandler.get_response_async().Joshua Massover2020-06-082-1/+48
|
* Fixed #31515 -- Made ASGIHandler dispatch lifecycle signals with thread ↵Carlton Gibson2020-05-061-1/+38
| | | | sensitive.
* Fixed #31224 -- Added support for asynchronous views and middleware.Andrew Godwin2020-03-181-27/+19
| | | | | This implements support for asynchronous views, asynchronous tests, asynchronous middleware, and an asynchronous test client.
* Refs #31224 -- Added autoconversion of test async methods.Andrew Godwin2020-03-051-8/+0
|
* Harmonized Windows checks in tests to a single style.Jon Dufresne2019-11-061-1/+1
|
* Fixed #30900 -- Skipped async-related tests on Windows using Python 3.8.0.Carlton Gibson2019-10-241-0/+2
| | | Refs https://bugs.python.org/issue38563.
* Refs #30451 -- Added more tests for ASGIRequest and ASGIHandler.Mariusz Felisiak2019-06-202-3/+95
|
* Fixed #30451 -- Added ASGI handler and coroutine-safety.Andrew Godwin2019-06-203-0/+99
This adds an ASGI handler, asgi.py file for the default project layout, a few async utilities and adds async-safety to many parts of Django.