#33699: Read ASGI request body from asyncio queue on-demand
-------------------------------+------------------------------------
     Reporter:  Noxx           |                    Owner:  noneNote
         Type:  New feature    |                   Status:  closed
    Component:  HTTP handling  |                  Version:  dev
     Severity:  Normal         |               Resolution:  wontfix
     Keywords:  ASGI, async    |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  1
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------
Comment (by Carlton Gibson):

 See [https://github.com/django/asgiref/issues/66 this long discussion on
 the asgiref repo] for more context.

 Disconnect handling requires consuming the request body messages from the
 receive queue.

 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)

 That would need first the PoC, and then the spec change (or clarification,
 if you prefer) to go with it.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/33699#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070190a54631e5-49154a60-efbb-4b12-a6e6-fa113aaecfb3-000000%40eu-central-1.amazonses.com.

Reply via email to