#34998: Raising a StopIteration in asynchronous mode hangs the request
----------------------------------+--------------------------------------
     Reporter:  Clément Escolano  |                    Owner:  nobody
         Type:  Uncategorized     |                   Status:  new
    Component:  Uncategorized     |                  Version:  4.2
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------
Changes (by Carlton Gibson):

 * cc: Andrew Godwin (added)


Comment:

 Good issue. AFAICS this is https://github.com/python/cpython/issues/112182

 See also https://github.com/agronholm/anyio/pull/477 and
 https://github.com/tiangolo/fastapi/issues/966 — aynio was able to work
 around it, but it's not clear we're going to be able to doing anything
 pending a fix in asyncio.

 To quote Guido from the Python issue:

 > My first response is "don't do that". That's why it prints such an
 elaborate warning.

 Short of a concrete suggestion, 🤷‍♀️

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34998#comment:2>
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/0107018c1742b334-b6320e5f-96f8-41e5-8f5b-6033023e49c0-000000%40eu-central-1.amazonses.com.

Reply via email to