René's URL Explorer Experiment


Title: bpo-30064: Fix asyncio loop.sock_* race condition issue by fantix · Pull Request #20369 · python/cpython · GitHub

Open Graph Title: bpo-30064: Fix asyncio loop.sock_* race condition issue by fantix · Pull Request #20369 · python/cpython

X Title: bpo-30064: Fix asyncio loop.sock_* race condition issue by fantix · Pull Request #20369 · python/cpython

Description: https://bugs.python.org/issue30064 This is reproducible by a cancel() followed directly by a retry: done, pending = await asyncio.wait([loop.sock_recv(sock, 1024)], timeout=0.1) if done: data ...

Open Graph Description: https://bugs.python.org/issue30064 This is reproducible by a cancel() followed directly by a retry: done, pending = await asyncio.wait([loop.sock_recv(sock, 1024)], timeout=0.1) if done: data ...

X Description: https://bugs.python.org/issue30064 This is reproducible by a cancel() followed directly by a retry: done, pending = await asyncio.wait([loop.sock_recv(sock, 1024)], timeout=0.1) if done: data ...

Opengraph URL: https://github.com/python/cpython/pull/20369

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:8cffc2cc-0f37-dd90-68ad-a9c458aa14ef
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAE6E:31E362:111C9D4:16FF998:6969A957
html-safe-nonce5d8dbb0296b49de08461e0b04b61854bab32d04a54cdcae5396ede2b99d0cd89
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTZFOjMxRTM2MjoxMTFDOUQ0OjE2RkY5OTg6Njk2OUE5NTciLCJ2aXNpdG9yX2lkIjoiMzkyNTcxNzE2NTM1MTIxNzQ5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd9daff081a4cc43e957221b20ce42bea21fc2946f801b6a7c16cb37100573a76
hovercard-subject-tagpull_request:422482704
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/20369/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/29fbd40bc610f5ddd309484bb72177ee5ff993b99c05c6c71f94d1900f7f4b27/python/cpython/pull/20369
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/29fbd40bc610f5ddd309484bb72177ee5ff993b99c05c6c71f94d1900f7f4b27/python/cpython/pull/20369
og:image:althttps://bugs.python.org/issue30064 This is reproducible by a cancel() followed directly by a retry: done, pending = await asyncio.wait([loop.sock_recv(sock, 1024)], timeout=0.1) if done: data ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefantix
hostnamegithub.com
expected-hostnamegithub.com
None24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release124667f43168afb6c9c03b7c02eb5b1d2e1be3d9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/20369#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20369
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20369
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/20369
Reloadhttps://github.com/python/cpython/pull/20369
Reloadhttps://github.com/python/cpython/pull/20369
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/20369
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/20369
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/20369#issue-comment-box
1st1https://github.com/1st1
python:masterhttps://github.com/python/cpython/tree/master
fantix:fix-issue-30064https://github.com/fantix/cpython/tree/fix-issue-30064
bpo-30064: Fix asyncio loop.sock_* race condition issue https://github.com/python/cpython/pull/20369#top
1st1https://github.com/1st1
python:masterhttps://github.com/python/cpython/tree/master
fantix:fix-issue-30064https://github.com/fantix/cpython/tree/fix-issue-30064
Conversation 8 https://github.com/python/cpython/pull/20369
Commits 2 https://github.com/python/cpython/pull/20369/commits
Checks 0 https://github.com/python/cpython/pull/20369/checks
Files changed https://github.com/python/cpython/pull/20369/files
Please reload this pagehttps://github.com/python/cpython/pull/20369
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/fantix
fantixhttps://github.com/fantix
May 24, 2020https://github.com/python/cpython/pull/20369#issue-623964774
Please reload this pagehttps://github.com/python/cpython/pull/20369
https://bugs.python.org/issue30064https://bugs.python.org/issue30064
Please reload this pagehttps://github.com/python/cpython/pull/20369
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
May 24, 2020https://github.com/python/cpython/pull/20369#event-3368385666
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
May 24, 2020https://github.com/python/cpython/pull/20369#event-3368385703
https://github.com/fantix
fantixhttps://github.com/fantix
force-pushedhttps://github.com/python/cpython/compare/2bb44f9b2d3f5bb38a281c900214833222fa4e43..04aa2a825b3d709f45c592fa2e7a8bbda6681f8e
2bb44f9https://github.com/python/cpython/commit/2bb44f9b2d3f5bb38a281c900214833222fa4e43
04aa2a8https://github.com/python/cpython/commit/04aa2a825b3d709f45c592fa2e7a8bbda6681f8e
Compare https://github.com/python/cpython/compare/2bb44f9b2d3f5bb38a281c900214833222fa4e43..04aa2a825b3d709f45c592fa2e7a8bbda6681f8e
May 25, 2020 16:54https://github.com/python/cpython/pull/20369#event-3370832930
https://github.com/fantix
fantixhttps://github.com/fantix
May 25, 2020https://github.com/python/cpython/pull/20369#event-3370833351
https://github.com/fantix
fantixhttps://github.com/fantix
force-pushedhttps://github.com/python/cpython/compare/04aa2a825b3d709f45c592fa2e7a8bbda6681f8e..2338f68a896c12d92470dd7b6e4cfad15ae489b5
04aa2a8https://github.com/python/cpython/commit/04aa2a825b3d709f45c592fa2e7a8bbda6681f8e
2338f68https://github.com/python/cpython/commit/2338f68a896c12d92470dd7b6e4cfad15ae489b5
Compare https://github.com/python/cpython/compare/04aa2a825b3d709f45c592fa2e7a8bbda6681f8e..2338f68a896c12d92470dd7b6e4cfad15ae489b5
May 25, 2020 18:58https://github.com/python/cpython/pull/20369#event-3371060298
https://github.com/fantix
fantixhttps://github.com/fantix
May 25, 2020 https://github.com/python/cpython/pull/20369#ref-pullrequest-624448790
Skip for bpo-30064 until 3.8.2 MagicStack/uvloop#346 https://github.com/MagicStack/uvloop/pull/346
https://github.com/fantix
fantixhttps://github.com/fantix
force-pushedhttps://github.com/python/cpython/compare/f65e3738e69c10df93273c3179d7c315f5ac9d97..a2461226b8e6153fe920357184e26a08099f0c3b
f65e373https://github.com/python/cpython/commit/f65e3738e69c10df93273c3179d7c315f5ac9d97
a246122https://github.com/python/cpython/commit/a2461226b8e6153fe920357184e26a08099f0c3b
Compare https://github.com/python/cpython/compare/f65e3738e69c10df93273c3179d7c315f5ac9d97..a2461226b8e6153fe920357184e26a08099f0c3b
May 25, 2020 20:20https://github.com/python/cpython/pull/20369#event-3371194152
https://github.com/fantix
fantixhttps://github.com/fantix
May 25, 2020 https://github.com/python/cpython/pull/20369#ref-issue-569134126
test_sockets.py::TestAIOSockets test timing out with 3.8.1 MagicStack/uvloop#318 https://github.com/MagicStack/uvloop/issues/318
https://github.com/fantix
fantixhttps://github.com/fantix
force-pushedhttps://github.com/python/cpython/compare/a2461226b8e6153fe920357184e26a08099f0c3b..05c0db442cf63eadcd1b9c78af6267e7d1af50e7
a246122https://github.com/python/cpython/commit/a2461226b8e6153fe920357184e26a08099f0c3b
05c0db4https://github.com/python/cpython/commit/05c0db442cf63eadcd1b9c78af6267e7d1af50e7
Compare https://github.com/python/cpython/compare/a2461226b8e6153fe920357184e26a08099f0c3b..05c0db442cf63eadcd1b9c78af6267e7d1af50e7
May 25, 2020 21:09https://github.com/python/cpython/pull/20369#event-3371269223
https://github.com/fantix
bpo-30064: Fix asyncio loop.sock_* race condition issuehttps://github.com/python/cpython/pull/20369/commits/ee75018ca94b9eec05bcf5287d2c7b5ce67d65eb
ee75018https://github.com/python/cpython/pull/20369/commits/ee75018ca94b9eec05bcf5287d2c7b5ce67d65eb
https://github.com/fantix
fantixhttps://github.com/fantix
force-pushedhttps://github.com/python/cpython/compare/05c0db442cf63eadcd1b9c78af6267e7d1af50e7..ee75018ca94b9eec05bcf5287d2c7b5ce67d65eb
05c0db4https://github.com/python/cpython/commit/05c0db442cf63eadcd1b9c78af6267e7d1af50e7
ee75018https://github.com/python/cpython/commit/ee75018ca94b9eec05bcf5287d2c7b5ce67d65eb
Compare https://github.com/python/cpython/compare/05c0db442cf63eadcd1b9c78af6267e7d1af50e7..ee75018ca94b9eec05bcf5287d2c7b5ce67d65eb
May 25, 2020 22:04https://github.com/python/cpython/pull/20369#event-3371343798
https://github.com/fantix
fantixhttps://github.com/fantix
May 25, 2020 22:40https://github.com/python/cpython/pull/20369#event-3371385614
https://github.com/fantix
fantixhttps://github.com/fantix
1st1https://github.com/1st1
asvetlovhttps://github.com/asvetlov
code ownershttps://github.com/python/cpython/blob/2602d97a0ae92b2d320909024e901c202b003e14/.github/CODEOWNERS#L8
May 25, 2020 22:40https://github.com/python/cpython/pull/20369#event-3371385621
https://github.com/1st1
1st1https://github.com/1st1
May 25, 2020 https://github.com/python/cpython/pull/20369#pullrequestreview-417894329
View reviewed changes https://github.com/python/cpython/pull/20369/files/ee75018ca94b9eec05bcf5287d2c7b5ce67d65eb
Lib/asyncio/selector_events.pyhttps://github.com/python/cpython/pull/20369/files/ee75018ca94b9eec05bcf5287d2c7b5ce67d65eb#diff-905d4384eaa0f1d54083b6d643e90b9404e32339f2c151e880491cb2e595f207
Please reload this pagehttps://github.com/python/cpython/pull/20369
https://github.com/1st1
1st1https://github.com/1st1
May 25, 2020 https://github.com/python/cpython/pull/20369#pullrequestreview-417894512
View reviewed changes https://github.com/python/cpython/pull/20369/files/ee75018ca94b9eec05bcf5287d2c7b5ce67d65eb
Lib/asyncio/selector_events.pyhttps://github.com/python/cpython/pull/20369/files/ee75018ca94b9eec05bcf5287d2c7b5ce67d65eb#diff-905d4384eaa0f1d54083b6d643e90b9404e32339f2c151e880491cb2e595f207
Please reload this pagehttps://github.com/python/cpython/pull/20369
https://github.com/fantix
Keep returning None for loop.add_reader/writerhttps://github.com/python/cpython/pull/20369/commits/a7636c6aaf16f2a01fe7d63b405a489fa5b6cb05
a7636c6https://github.com/python/cpython/pull/20369/commits/a7636c6aaf16f2a01fe7d63b405a489fa5b6cb05
pythonGH-30064https://github.com/python/cpython/pull/30064
https://github.com/fantix
fantixhttps://github.com/fantix
1st1https://github.com/1st1
May 26, 2020 00:29https://github.com/python/cpython/pull/20369#event-3371500537
https://github.com/1st1
1st1https://github.com/1st1
needs backport to 3.9 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.9%22
May 26, 2020https://github.com/python/cpython/pull/20369#event-3371604262
https://github.com/1st1
1st1https://github.com/1st1
May 26, 2020 https://github.com/python/cpython/pull/20369#pullrequestreview-417925593
View reviewed changes https://github.com/python/cpython/pull/20369/files/a7636c6aaf16f2a01fe7d63b405a489fa5b6cb05
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
May 26, 2020https://github.com/python/cpython/pull/20369#event-3371605517
https://github.com/1st1
1st1https://github.com/1st1
May 26, 2020https://github.com/python/cpython/pull/20369#issuecomment-633767788
@asvetlovhttps://github.com/asvetlov
Please reload this pagehttps://github.com/python/cpython/pull/20369
https://github.com/1st1
1st1https://github.com/1st1
210a137https://github.com/python/cpython/commit/210a137396979d747c2602eeef46c34fc4955448
May 27, 2020https://github.com/python/cpython/pull/20369#event-3379814342
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
May 27, 2020https://github.com/python/cpython/pull/20369#issuecomment-634902310
@fantixhttps://github.com/fantix
@1st1https://github.com/1st1
Please reload this pagehttps://github.com/python/cpython/pull/20369
https://github.com/1st1
1st1https://github.com/1st1
May 27, 2020https://github.com/python/cpython/pull/20369#issuecomment-634902361
Please reload this pagehttps://github.com/python/cpython/pull/20369
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
May 27, 2020https://github.com/python/cpython/pull/20369#issuecomment-634902442
GH-20460https://github.com/python/cpython/pull/20460
3.9 branchhttps://github.com/python/cpython/tree/3.9
Please reload this pagehttps://github.com/python/cpython/pull/20369
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
needs backport to 3.9 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.9%22
May 27, 2020https://github.com/python/cpython/pull/20369#event-3379815271
miss-islingtonhttps://github.com/miss-islington
May 27, 2020 https://github.com/python/cpython/pull/20369#ref-commit-3a2667d
https://github.com/miss-islington
https://github.com/fantix
bpo-30064https://bugs.python.org/issue?@action=redirect&bpo=30064
: Fix asyncio loop.sock_* race condition issue (https://github.com/python/cpython/commit/3a2667d91e33493ccde113ddf5092afefc3c89fa
GH-20369https://github.com/python/cpython/pull/20369
)https://github.com/python/cpython/commit/3a2667d91e33493ccde113ddf5092afefc3c89fa
3a2667dhttps://github.com/python/cpython/commit/3a2667d91e33493ccde113ddf5092afefc3c89fa
210a137https://github.com/python/cpython/commit/210a137396979d747c2602eeef46c34fc4955448
https://github.com/fantix
fantixhttps://github.com/fantix
December 1, 2020 16:35https://github.com/python/cpython/pull/20369#event-4058138334
https://github.com/python/cpython/pull/20369
abacabadabacabahttps://github.com/python/cpython/pull/20369
Apr 10, 2022 https://github.com/python/cpython/pull/20369#ref-issue-1198971589
BaseSelectorEventLoop.sock_{recv,sendall}() don't remove their callbacks when canceled #74250 https://github.com/python/cpython/issues/74250
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20369
https://github.com/1st1
1st1 https://github.com/1st1
https://github.com/python/cpython/pull/20369/files/a7636c6aaf16f2a01fe7d63b405a489fa5b6cb05
https://github.com/asvetlov
asvetlov https://github.com/asvetlov
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Please reload this pagehttps://github.com/python/cpython/pull/20369
https://github.com/fantix
https://github.com/1st1
https://github.com/miss-islington
https://github.com/bedevere-bot
https://github.com/the-knights-who-say-ni
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.