mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 18:21:30 +08:00
Add chunked transfer encoding support to the ASGI worker for HTTP/1.1 streaming responses that don't have a Content-Length header. This fixes SSE (Server-Sent Events) connections not closing properly. Without chunked encoding or Content-Length, HTTP/1.1 clients wait for the connection to close to determine end-of-response, causing streaming endpoints to hang. Also updates the celery_alternative example to use FastAPI with the native ASGI worker and uvloop, demonstrating async task execution with proper SSE streaming.
7 lines
125 B
Plaintext
7 lines
125 B
Plaintext
# Celery Replacement Example Dependencies
|
|
fastapi>=0.109.0
|
|
uvloop>=0.19.0
|
|
httpx>=0.26.0
|
|
pytest>=8.0.0
|
|
pytest-asyncio>=0.23.0
|