Changes between Initial Version and Version 1 of Ticket #33699, comment 9
- Timestamp:
- Jul 11, 2024, 11:59:54 PM (5 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33699, comment 9
initial v1 1 1 See [https://github.com/django/asgiref/issues/66 this long discussion on the asgiref repo] for more context. 2 2 3 Disconnect handling requires consuming the request body messages from the receive queue .3 Disconnect handling requires consuming the request body messages from the receive queue, so that the disconnect message (if sent) is available. 4 4 5 If the ASGI could pass an open file descriptor for the request body to the application, then in principle we could use that directly, rather than needing to spool the body file (to memory or disk, depending on size). That would loose the ability to have the server and application on different servers, but that might be OK in many cases. (IDK)5 If the ASGI server (Daphne/Uvicorn/Hypercorn/...) could pass an open file descriptor for the request body to the application (Django), then in principle we could use that directly, rather than needing to spool the body file (to memory or disk, depending on size). That would loose the ability to have the server and application on different servers, but that might be OK in many cases. (IDK) 6 6 7 7 That would need first the PoC, and then the spec change (or clarification, if you prefer) to go with it.