#35059: ASGI server leaves stale DB connections
-------------------------------------+-------------------------------------
Reporter: James Thorniley | Owner: James
| Thorniley
Type: Bug | Status: closed
Component: HTTP handling | Version: 5.0
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia <124304+nessita@…>):
In [changeset:"f1fbd061ac34f0afdaac4a5c7db099c39b43cb4a" f1fbd061]:
{{{#!CommitTicketReference repository=""
revision="f1fbd061ac34f0afdaac4a5c7db099c39b43cb4a"
[5.0.x] Fixed #35059 -- Ensured that ASGIHandler always sends the
request_finished signal.
Prior to this work, when async tasks that process the request are
cancelled due
to receiving an early "http.disconnect" ASGI message, the request_finished
signal was not being sent, potentially leading to resource leaks (such as
database connections).
This branch ensures that the request_finished signal is sent even in the
case
of early termination of the response.
Regression in 64cea1e48f285ea2162c669208d95188b32bbc82.
Co-authored-by: Natalia <[email protected]>
Co-authored-by: Carlton Gibson <[email protected]>
Backport of 11393ab1316f973c5fbb534305750740d909b4e4 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35059#comment:19>
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/0107018d60a102ff-6e770daa-b792-4fd9-97a2-aed907af0bd4-000000%40eu-central-1.amazonses.com.