Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Connection leak with StreamingResponse #34

Open
edevil opened this issue Jan 26, 2018 · 0 comments
Open

Connection leak with StreamingResponse #34

edevil opened this issue Jan 26, 2018 · 0 comments

Comments

@edevil
Copy link

edevil commented Jan 26, 2018

When we use streaming responses in Django, or the static MEDIA (static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) in url patterns) serving in development mode, the "request_finished" signal is never sent at the end of the request.

Django uses this signal to clean up db connections and return them to the pool, which means these connections leak.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant