#32798: StreamingHttpResponse raises SynchronousOnlyOperation in ASGI server
--------------------------------+------------------------------------
     Reporter:  Ralph Broenink  |                    Owner:  nobody
         Type:  Bug             |                   Status:  new
    Component:  HTTP handling   |                  Version:  3.2
     Severity:  Normal          |               Resolution:
     Keywords:  ASGI, async     |             Triage Stage:  Accepted
    Has patch:  0               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  0
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+------------------------------------

Comment (by Andrew Godwin):

 Separating these out as two issues:

  - Generators should indeed be called within sync_to_async for now, as a
 safety measure. This is a patch I'd like to see in Django.
  - At some point in future, maybe we can detect async generators and
 correctly handle them in both async and sync modes, but that can be an
 optional extra for some future time.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32798#comment:4>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.67ee914b1adb0837ca59cc637d818e60%40djangoproject.com.

Reply via email to