﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34752	ASGI http.disconnect not handled for streaming responses	Sam Toyer	Sam Toyer	"The fix to #33738 (ticket) correctly handles HTTP disconnects before a view exits (i.e. returns a response object), but does not handle disconnects between the time when the view returns and the time when the response actually finishes. This is a particular problem for long-lived `StreamingHttpResponse`s (e.g. for SSE).

The issue can be solved by extending the original cancellation/disconnect-handling logic to also cover `AsgiHandler.send_response()`. Example tests and a fix are in this commit: https://github.com/qxcv/django/commit/ed2f9ad03a3abbc636fd5fa590d69ba36571c158

I'm happy to file a PR if this is wanted upstream."	Bug	closed	HTTP handling	dev	Release blocker	fixed	async	Dennis Chukwunta Carlton Gibson Andrew Godwin	Ready for checkin	1	0	0	0	0	0
