Skip to content

move remove_done_callback to finally block to fix RuntimeError('Event loop stopped before Future completed')#106

Merged
1st1 merged 2 commits into
MagicStack:masterfrom
jimmylai:master
Nov 10, 2017
Merged

move remove_done_callback to finally block to fix RuntimeError('Event loop stopped before Future completed')#106
1st1 merged 2 commits into
MagicStack:masterfrom
jimmylai:master

Conversation

@jimmylai

@jimmylai jimmylai commented Sep 4, 2017

Copy link
Copy Markdown
Contributor

@1st1
This fix is the same as python/cpython#1688

I still don't have clear idea about how the future with callback was left over in the loop.

This fix has proven to be effective in large scale production.

@1st1 1st1 merged commit 804364c into MagicStack:master Nov 10, 2017
@1st1

1st1 commented Nov 10, 2017

Copy link
Copy Markdown
Member

Thanks @jimmylai

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.

2 participants