Skip to content

Conversation

gazpachoking
Copy link
Collaborator

If a client aborts a long lived connection in a Sanic handler using datastar_response the generator wouldn't be exited until garbage collection. This change makes sure it's closed immediately in case the user was trying to react to such a client abort.

@gazpachoking gazpachoking merged commit 589da38 into develop Jul 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant