René's URL Explorer Experiment


Title: Fix errors with multi-process workers on Windows by chadrik · Pull Request #22016 · python/mypy · GitHub

Open Graph Title: Fix errors with multi-process workers on Windows by chadrik · Pull Request #22016 · python/mypy

X Title: Fix errors with multi-process workers on Windows by chadrik · Pull Request #22016 · python/mypy

Description: Fixes #21484 "Failed to write with error: 233" on Windows. This change creates parity between Windows and POSIX, by not applying a server's connection timeout to the read/write traffic that follows on Windows. Problem An IPCServer's timeout applies to accepting a connection. On POSIX it stops there, because it is set on the listening socket and accept() hands back a blocking one, but on Windows it applies to the pipe handle and so also bounds every subsequent read and write. Once a peer is connected, the peer may legitimately stay silent for a long time while it computes, so this makes Windows give up on perfectly healthy peers. After a build worker sends its setup ack it blocks in receive() waiting for the graph, but the coordinator only broadcasts the graph once it has finished loading it, which routinely takes longer than WORKER_CONNECTION_TIMEOUT on a large or cold-cache build. The worker's read fails with "Bad result from I/O wait: 258" (WAIT_TIMEOUT), main() swallows it, and the worker exits 0. When the coordinator finally broadcasts, every write thread dies looking for a pipe with nobody on the other end: Exception in thread Thread-7 (write_bytes): File "mypy/ipc.py", line 158, in write_bytes OSError: [WinError 233] No process is on the other end of the pipe ... mypy.ipc.IPCException: Failed to write with error: 233 and the following wait_ack() reports "Worker 0 disconnected before sending data (exit code 0)". Solution Split the timeout used by reads and writes from the one used to connect, and have IPCServer clear it, which is what POSIX already does. IPCClient keeps applying it to reads and writes, also matching POSIX, where it is set on the connected socket -- "dmypy hang" relies on that.

Open Graph Description: Fixes #21484 "Failed to write with error: 233" on Windows. This change creates parity between Windows and POSIX, by not applying a server's connection timeout to the read/write traffi...

X Description: Fixes #21484 "Failed to write with error: 233" on Windows. This change creates parity between Windows and POSIX, by not applying a server's connection timeout to the read/...

Opengraph URL: https://github.com/python/mypy/pull/22016

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:c0b38d99-a973-63bc-6f65-a46d485a6e83
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id93AA:2F2EB9:2ECBEBF:3E0A921:6B00297C
html-safe-noncecb987c72a6bee9abc3a53b3bfb4151a6e945ccf492191b22d1210ed8f58a1356
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0FBOjJGMkVCOToyRUNCRUJGOjNFMEE5MjE6NkIwMDI5N0MiLCJ2aXNpdG9yX2lkIjoiNDU4NDc1NjE5MzAyNDU1MTI5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac11a9b7b75324e41492883db1eab95ba7f6997c170ee53a182a09ca6241444ede
hovercard-subject-tagpull_request:4587613335
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/mypy/pull/22016/files
twitter:imagehttps://avatars.githubusercontent.com/u/63251?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/63251?s=400&v=4
og:image:altFixes #21484 "Failed to write with error: 233" on Windows. This change creates parity between Windows and POSIX, by not applying a server's connection timeout to the read/write traffi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/mypy git https://github.com/python/mypy.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id7053637
octolytics-dimension-repository_nwopython/mypy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7053637
octolytics-dimension-repository_network_root_nwopython/mypy
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
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/mypy/pull/22016/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F22016%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%2Fmypy%2Fpull%2F22016%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%2Fmypy
Reloadhttps://github.com/python/mypy/pull/22016/files
Reloadhttps://github.com/python/mypy/pull/22016/files
Reloadhttps://github.com/python/mypy/pull/22016/files
pythonhttps://github.com/python
mypyhttps://github.com/python/mypy
Codehttps://github.com/python/mypy
Issues2.7k (2.7k)https://github.com/python/mypy/issues
Pull requests547 (547)https://github.com/python/mypy/pulls
Actionshttps://github.com/python/mypy/actions
Projectshttps://github.com/python/mypy/projects
Wikihttps://github.com/python/mypy/wiki
Security and qualityhttps://github.com/python/mypy/security
Insightshttps://github.com/python/mypy/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fmypy%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fmypy%2Fissues%2Fnew%2Fchoose
ilevkivskyihttps://github.com/ilevkivskyi
python:masterhttps://github.com/python/mypy/tree/master
chadrik:fix/win-worker-timeout-part1https://github.com/chadrik/mypy/tree/fix/win-worker-timeout-part1
Conversation 7 https://github.com/python/mypy/pull/22016
Commits 3 https://github.com/python/mypy/pull/22016/commits
Checks 24 https://github.com/python/mypy/pull/22016/checks
Files changed https://github.com/python/mypy/pull/22016/files
Please reload this pagehttps://github.com/python/mypy/pull/22016/files
Fix errors with multi-process workers on Windows https://github.com/python/mypy/pull/22016/files#top
Show all changes 3 commits https://github.com/python/mypy/pull/22016/files
d992c92 Don't apply a server's connection timeout to the read/write traffic t… cdombrova-scanlinevfx Aug 14, 2026 https://github.com/python/mypy/pull/22016/commits/d992c9290d5f498d5a9119b99f22e9ad5ecdde22
affe62f Style ilevkivskyi Sep 23, 2026 https://github.com/python/mypy/pull/22016/commits/affe62fe2eff726a0acb8b667540e64ccfdc69a1
913533a Typo ilevkivskyi Sep 23, 2026 https://github.com/python/mypy/pull/22016/commits/913533a8eac0d9ca7ed196d5f4285a971abfb10f
Clear filters https://github.com/python/mypy/pull/22016/files
Please reload this pagehttps://github.com/python/mypy/pull/22016/files
Please reload this pagehttps://github.com/python/mypy/pull/22016/files
ipc.py https://github.com/python/mypy/pull/22016/files#diff-fdd32ed24fbe4ba0b8ee76d9b1724133785294427d8700ab9cc160f1adda71b7
testipc.py https://github.com/python/mypy/pull/22016/files#diff-acf5c64666610243693cae6a11b8a45839e1851d6407b81ee8d7a646e82dd7df
mypy/ipc.pyhttps://github.com/python/mypy/pull/22016/files#diff-fdd32ed24fbe4ba0b8ee76d9b1724133785294427d8700ab9cc160f1adda71b7
View file https://github.com/chadrik/mypy/blob/913533a8eac0d9ca7ed196d5f4285a971abfb10f/mypy/ipc.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/mypy/pull/22016/{{ revealButtonHref }}
https://github.com/python/mypy/pull/22016/files#diff-fdd32ed24fbe4ba0b8ee76d9b1724133785294427d8700ab9cc160f1adda71b7
https://github.com/python/mypy/pull/22016/files#diff-fdd32ed24fbe4ba0b8ee76d9b1724133785294427d8700ab9cc160f1adda71b7
https://github.com/python/mypy/pull/22016/files#diff-fdd32ed24fbe4ba0b8ee76d9b1724133785294427d8700ab9cc160f1adda71b7
https://github.com/python/mypy/pull/22016/files#diff-fdd32ed24fbe4ba0b8ee76d9b1724133785294427d8700ab9cc160f1adda71b7
https://github.com/python/mypy/pull/22016/files#diff-fdd32ed24fbe4ba0b8ee76d9b1724133785294427d8700ab9cc160f1adda71b7
https://github.com/python/mypy/pull/22016/files#diff-fdd32ed24fbe4ba0b8ee76d9b1724133785294427d8700ab9cc160f1adda71b7
https://github.com/python/mypy/pull/22016/files#diff-fdd32ed24fbe4ba0b8ee76d9b1724133785294427d8700ab9cc160f1adda71b7
https://github.com/python/mypy/pull/22016/files#diff-fdd32ed24fbe4ba0b8ee76d9b1724133785294427d8700ab9cc160f1adda71b7
mypy/test/testipc.pyhttps://github.com/python/mypy/pull/22016/files#diff-acf5c64666610243693cae6a11b8a45839e1851d6407b81ee8d7a646e82dd7df
View file https://github.com/chadrik/mypy/blob/913533a8eac0d9ca7ed196d5f4285a971abfb10f/mypy/test/testipc.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/mypy/pull/22016/{{ revealButtonHref }}
https://github.com/python/mypy/pull/22016/files#diff-acf5c64666610243693cae6a11b8a45839e1851d6407b81ee8d7a646e82dd7df
https://github.com/python/mypy/pull/22016/files#diff-acf5c64666610243693cae6a11b8a45839e1851d6407b81ee8d7a646e82dd7df
https://github.com/python/mypy/pull/22016/files#diff-acf5c64666610243693cae6a11b8a45839e1851d6407b81ee8d7a646e82dd7df
https://github.com/python/mypy/pull/22016/files#diff-acf5c64666610243693cae6a11b8a45839e1851d6407b81ee8d7a646e82dd7df
Please reload this pagehttps://github.com/python/mypy/pull/22016/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.