bpo-39651: Fix asyncio proactor _write_to_self() by vstinner · Pull Request #22197 · python/cpython (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation6 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

vstinner

Fix a race condition in the call_soon_threadsafe() method of
asyncio.ProactorEventLoop: do nothing if the self-pipe socket has
been closed.

https://bugs.python.org/issue39651

@vstinner

Fix a race condition in the call_soon_threadsafe() method of asyncio.ProactorEventLoop: do nothing if the self-pipe socket has been closed.

@vstinner

@1st1 @asvetlov: Would you mind to review my change?

I didn't test my patch, I basically copied/pasted the code between SelectorEventLoop to ProactorEventLoop.

1st1

1st1 approved these changes Sep 11, 2020

@1st1

@miss-islington

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@miss-islington

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Sep 12, 2020

@vstinner @miss-islington

Fix a race condition in the call_soon_threadsafe() method of asyncio.ProactorEventLoop: do nothing if the self-pipe socket has been closed. (cherry picked from commit 1b0f0e3)

Co-authored-by: Victor Stinner vstinner@python.org

@bedevere-bot

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Sep 12, 2020

@vstinner @miss-islington

Fix a race condition in the call_soon_threadsafe() method of asyncio.ProactorEventLoop: do nothing if the self-pipe socket has been closed. (cherry picked from commit 1b0f0e3)

Co-authored-by: Victor Stinner vstinner@python.org

@bedevere-bot

miss-islington added a commit that referenced this pull request

Sep 12, 2020

@miss-islington @vstinner

Fix a race condition in the call_soon_threadsafe() method of asyncio.ProactorEventLoop: do nothing if the self-pipe socket has been closed. (cherry picked from commit 1b0f0e3)

Co-authored-by: Victor Stinner vstinner@python.org

miss-islington added a commit that referenced this pull request

Sep 12, 2020

@miss-islington @vstinner

Fix a race condition in the call_soon_threadsafe() method of asyncio.ProactorEventLoop: do nothing if the self-pipe socket has been closed. (cherry picked from commit 1b0f0e3)

Co-authored-by: Victor Stinner vstinner@python.org

xzy3 pushed a commit to xzy3/cpython that referenced this pull request

Oct 18, 2020

@vstinner

Fix a race condition in the call_soon_threadsafe() method of asyncio.ProactorEventLoop: do nothing if the self-pipe socket has been closed.