Skip to content

gh-152569: Fix asyncio.wait leaking tasks via await-graph on long-lived futures#152585

Open
Skn0tt wants to merge 1 commit into
python:mainfrom
Skn0tt:gh-152569-wait-awaited-by-leak
Open

gh-152569: Fix asyncio.wait leaking tasks via await-graph on long-lived futures#152585
Skn0tt wants to merge 1 commit into
python:mainfrom
Skn0tt:gh-152569-wait-awaited-by-leak

Conversation

@Skn0tt

@Skn0tt Skn0tt commented Jun 29, 2026

Copy link
Copy Markdown

asyncio.wait registered the waiting task in each future's awaited_by set but only discarded it from completed futures, pinning the task on futures that never resolve. Discard from all futures on return.

Similar to fccbfc4.

…ng-lived futures

asyncio.wait registered the waiting task in each future's awaited_by set but only discarded it from completed futures, pinning the task on futures that never resolve. Discard from all futures on return.
@python-cla-bot

python-cla-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant