Opened 99 minutes ago

Last modified 88 minutes ago

#36628 assigned Bug

StreamingHttpResponse doesn't send final ASGI more_body=False signal

Reported by: Louis Amon Owned by: Louis Amon
Component: HTTP handling Version: 5.2
Severity: Normal Keywords: streaming, vercel, asgi
Cc: Louis Amon Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Django's StreamingHttpResponse does not send the final ASGI more_body=False
signal when streaming responses are exhausted.

This causes compatibility issues with ASGI servers like Vercel's custom handler that require this
signal to properly finalize responses.

Reference:
https://github.com/vercel/vercel/blob/main/packages/python/vc_init.py#L646

Change History (1)

Note: See TracTickets for help on using tickets.
Back to Top