René's URL Explorer Experiment


Title: gh-156920, gh-156698: fix ProactorEventLoop datagram transport hangs on close() and after write errors by graingert · Pull Request #156921 · python/cpython · GitHub

Open Graph Title: gh-156920, gh-156698: fix ProactorEventLoop datagram transport hangs on close() and after write errors by graingert · Pull Request #156921 · python/cpython

X Title: gh-156920, gh-156698: fix ProactorEventLoop datagram transport hangs on close() and after write errors by graingert · Pull Request #156921 · python/cpython

Description: Issue: gh-156920 Issue: gh-156698

Open Graph Description: Issue: gh-156920 Issue: gh-156698

X Description: Issue: gh-156920 Issue: gh-156698

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8d079382-5fc2-4494-37e0-2b6296a3e498
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD6A8:380435:9C3B78:C51149:6B021D08
html-safe-nonce4341bfe674b2f297641c134a0be83c4922134184f82931000ab3cade2c1cde26
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkE4OjM4MDQzNTo5QzNCNzg6QzUxMTQ5OjZCMDIxRDA4IiwidmlzaXRvcl9pZCI6IjY4NjExMjQzNDkyMTk0NDYwMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccda05cd2bf8f9adec5a58daca0e81bb03578cd508a9202dc8a14d5c0d37208b9
hovercard-subject-tagpull_request:4441008287
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/156921/files
twitter:imagehttps://avatars.githubusercontent.com/u/413772?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/413772?s=400&v=4
og:image:altIssue: gh-156920 Issue: gh-156698
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/156921/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F156921%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F156921%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/156921/files
Reloadhttps://github.com/python/cpython/pull/156921/files
Reloadhttps://github.com/python/cpython/pull/156921/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
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
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
graingert:fix-proactor-close-flushhttps://github.com/graingert/cpython/tree/fix-proactor-close-flush
Conversation 14 https://github.com/python/cpython/pull/156921
Commits 23 https://github.com/python/cpython/pull/156921/commits
Checks 59 https://github.com/python/cpython/pull/156921/checks
Files changed https://github.com/python/cpython/pull/156921/files
Please reload this pagehttps://github.com/python/cpython/pull/156921/files
gh-156920, gh-156698: fix ProactorEventLoop datagram transport hangs on close() and after write errors https://github.com/python/cpython/pull/156921/files#top
Show all changes 23 commits https://github.com/python/cpython/pull/156921/files
3006d6e fix proactor error hang graingert Aug 31, 2026 https://github.com/python/cpython/pull/156921/commits/3006d6e730748931a023ad37ed887417c321d2d0
60187dd Merge branch 'main' into fix-proactor-error-hang graingert Sep 4, 2026 https://github.com/python/cpython/pull/156921/commits/60187dd125d39cd6e273f03d88562352f80771d1
d57cb23 fix DatagramTransport when errror_recieved calls sendto graingert Sep 4, 2026 https://github.com/python/cpython/pull/156921/commits/d57cb23e9bbdbde9332de9dae1a668f6615d987f
f843371 gh-156920: fix ProactorEventLoop datagram transports drop buffered da… graingert Sep 4, 2026 https://github.com/python/cpython/pull/156921/commits/f843371eff4f1ccdac9008ed47ae0bf49bdb2dc1
bb80478 Merge branch 'main' of github.com:python/cpython into fix-proactor-er… graingert Sep 5, 2026 https://github.com/python/cpython/pull/156921/commits/bb80478c626d5ea17b2ec831c252b5dadd1cf525
0db5dd3 Merge branch 'fix-proactor-error-hang' into fix-proactor-close-flush graingert Sep 5, 2026 https://github.com/python/cpython/pull/156921/commits/0db5dd3c6d2658e82bc7c181e71897f51c33d305
37a9b5b Update Lib/asyncio/proactor_events.py graingert Sep 5, 2026 https://github.com/python/cpython/pull/156921/commits/37a9b5b40c0d2296f2835748647cc336e5758950
d8f9aae Merge branch 'main' into fix-proactor-error-hang graingert Sep 6, 2026 https://github.com/python/cpython/pull/156921/commits/d8f9aae670fff7e8f7e617f9f7e7fd0db2ea66f8
9eda8d0 don't resume a closed transport graingert Sep 6, 2026 https://github.com/python/cpython/pull/156921/commits/9eda8d041c9de05012eaa5994d7182b708c31e47
9fcd45c Merge branch 'main' into fix-proactor-error-hang graingert Sep 7, 2026 https://github.com/python/cpython/pull/156921/commits/9fcd45ce5a70fac4dc31265511aac4417fda30e0
4822ab7 add test for close called in error_recieved graingert Sep 7, 2026 https://github.com/python/cpython/pull/156921/commits/4822ab71e974da0b38c284c7d86c15eee0ea9149
ce2168b Merge branch 'fix-proactor-error-hang' into fix-proactor-close-flush graingert Sep 7, 2026 https://github.com/python/cpython/pull/156921/commits/ce2168bcab3f445f73ef2d09f9e1fedb87505a84
b52b945 Revert "add test for close called in error_recieved" graingert Sep 7, 2026 https://github.com/python/cpython/pull/156921/commits/b52b9454561985fb4c56a896424b8e8564398698
d4ee8a9 add test_datagram_write_error_close_from_callback graingert Sep 7, 2026 https://github.com/python/cpython/pull/156921/commits/d4ee8a93a63879cdd41725f7300e6a002ac2348e
b74ffb3 use SHORT_TIMEOUT instead of hardcoded 10 graingert Sep 11, 2026 https://github.com/python/cpython/pull/156921/commits/b74ffb352e277077db8003ad1bd1fc570d9b1834
01b328a Merge branch 'main' into fix-proactor-error-hang graingert Sep 11, 2026 https://github.com/python/cpython/pull/156921/commits/01b328af8e4d999d5f5218cc4831ae13db4c28f8
b43d1fc Merge branch 'fix-proactor-error-hang' into fix-proactor-close-flush graingert Sep 11, 2026 https://github.com/python/cpython/pull/156921/commits/b43d1fc2462acac8112fed0263a5e5ee5ccfa8ba
55706b8 drop datagram write-error tests that pass without the fix graingert Sep 11, 2026 https://github.com/python/cpython/pull/156921/commits/55706b890610d9db52a1d87617f7657f4136d46e
92d347c Merge branch 'main' into fix-proactor-close-flush graingert Sep 11, 2026 https://github.com/python/cpython/pull/156921/commits/92d347cc6586074b8786b3efa6a0897a70f75a36
757a9fb check self._closing in Datagram _loop_reading graingert Sep 11, 2026 https://github.com/python/cpython/pull/156921/commits/757a9fb2b770e80fcd662d12232719d6a97cf762
386268a Apply suggestion from @kumaraditya303 graingert Sep 12, 2026 https://github.com/python/cpython/pull/156921/commits/386268ae030ab84f9854905bcc378bc7170cbae2
5d6ac18 Merge branch 'main' into fix-proactor-close-flush graingert Sep 12, 2026 https://github.com/python/cpython/pull/156921/commits/5d6ac18f675166dfe8423a959d5d93b9452295a0
1adb870 replace arm with schedule graingert Sep 12, 2026 https://github.com/python/cpython/pull/156921/commits/1adb870e42cbef5d731293e7aee6a93bc1cfbf94
Clear filters https://github.com/python/cpython/pull/156921/files
Please reload this pagehttps://github.com/python/cpython/pull/156921/files
Please reload this pagehttps://github.com/python/cpython/pull/156921/files
proactor_events.py https://github.com/python/cpython/pull/156921/files#diff-15176d64608861034db7168743f4f116f4cb33422cf685a2b911481c55826aa2
test_events.py https://github.com/python/cpython/pull/156921/files#diff-b125df0ba39acde9a49ff4ce6a554310cab3daf258a2e77c219fce5a8b17c146
2026-08-31-00-00-00.gh-issue-156698.gyDxUe.rst https://github.com/python/cpython/pull/156921/files#diff-9ba0a36ce1e31d8f20038944467da997c89870db2d05cb0d82d7b2f73166f8fc
2026-09-04-09-18-05.gh-issue-156920.lONsKT.rst https://github.com/python/cpython/pull/156921/files#diff-fd672e4b0708689e3407a22e580b7e19406b63b9504be9b225c576dae78d0bad
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L376
Lib/asyncio/proactor_events.pyhttps://github.com/python/cpython/pull/156921/files#diff-15176d64608861034db7168743f4f116f4cb33422cf685a2b911481c55826aa2
View file https://github.com/graingert/cpython/blob/1adb870e42cbef5d731293e7aee6a93bc1cfbf94/Lib/asyncio/proactor_events.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/156921/{{ revealButtonHref }}
https://github.com/python/cpython/pull/156921/files#diff-15176d64608861034db7168743f4f116f4cb33422cf685a2b911481c55826aa2
https://github.com/python/cpython/pull/156921/files#diff-15176d64608861034db7168743f4f116f4cb33422cf685a2b911481c55826aa2
https://github.com/python/cpython/pull/156921/files#diff-15176d64608861034db7168743f4f116f4cb33422cf685a2b911481c55826aa2
https://github.com/python/cpython/pull/156921/files#diff-15176d64608861034db7168743f4f116f4cb33422cf685a2b911481c55826aa2
https://github.com/python/cpython/pull/156921/files#diff-15176d64608861034db7168743f4f116f4cb33422cf685a2b911481c55826aa2
https://github.com/python/cpython/pull/156921/files#diff-15176d64608861034db7168743f4f116f4cb33422cf685a2b911481c55826aa2
https://github.com/python/cpython/pull/156921/files#diff-15176d64608861034db7168743f4f116f4cb33422cf685a2b911481c55826aa2
https://github.com/python/cpython/pull/156921/files#diff-15176d64608861034db7168743f4f116f4cb33422cf685a2b911481c55826aa2
https://github.com/python/cpython/pull/156921/files#diff-15176d64608861034db7168743f4f116f4cb33422cf685a2b911481c55826aa2
https://github.com/python/cpython/pull/156921/files#diff-15176d64608861034db7168743f4f116f4cb33422cf685a2b911481c55826aa2
https://github.com/python/cpython/pull/156921/files#diff-15176d64608861034db7168743f4f116f4cb33422cf685a2b911481c55826aa2
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L377
Lib/test/test_asyncio/test_events.pyhttps://github.com/python/cpython/pull/156921/files#diff-b125df0ba39acde9a49ff4ce6a554310cab3daf258a2e77c219fce5a8b17c146
View file https://github.com/graingert/cpython/blob/1adb870e42cbef5d731293e7aee6a93bc1cfbf94/Lib/test/test_asyncio/test_events.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/156921/{{ revealButtonHref }}
https://github.com/python/cpython/pull/156921/files#diff-b125df0ba39acde9a49ff4ce6a554310cab3daf258a2e77c219fce5a8b17c146
https://github.com/python/cpython/pull/156921/files#diff-b125df0ba39acde9a49ff4ce6a554310cab3daf258a2e77c219fce5a8b17c146
Misc/NEWS.d/next/Library/2026-08-31-00-00-00.gh-issue-156698.gyDxUe.rsthttps://github.com/python/cpython/pull/156921/files#diff-9ba0a36ce1e31d8f20038944467da997c89870db2d05cb0d82d7b2f73166f8fc
View file https://github.com/graingert/cpython/blob/1adb870e42cbef5d731293e7aee6a93bc1cfbf94/Misc/NEWS.d/next/Library/2026-08-31-00-00-00.gh-issue-156698.gyDxUe.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/156921/{{ revealButtonHref }}
Misc/NEWS.d/next/Library/2026-09-04-09-18-05.gh-issue-156920.lONsKT.rsthttps://github.com/python/cpython/pull/156921/files#diff-fd672e4b0708689e3407a22e580b7e19406b63b9504be9b225c576dae78d0bad
View file https://github.com/graingert/cpython/blob/1adb870e42cbef5d731293e7aee6a93bc1cfbf94/Misc/NEWS.d/next/Library/2026-09-04-09-18-05.gh-issue-156920.lONsKT.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/156921/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/156921/files
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.