Skip to content

gh-157301: Fix asyncio event loop hanging on a failed eager task start - #157302

Open
deadlovelll wants to merge 2 commits into
python:mainfrom
deadlovelll:gh-157301-hang
Open

gh-157301: Fix asyncio event loop hanging on a failed eager task start#157302
deadlovelll wants to merge 2 commits into
python:mainfrom
deadlovelll:gh-157301-hang

Conversation

@deadlovelll

Copy link
Copy Markdown
Contributor

Fix asyncio event loop hanging on a failed eager task start

For more details see gh-157301

Comment thread Modules/_asynciomodule.c
@@ -3454,6 +3461,11 @@ task_eager_start(_PyThreadStateImpl *ts, asyncio_state *state, TaskObj *task)
register_task(ts, task);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a assert here on task_context of PyContext_CheckExact

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

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.

2 participants