Title: Detach Windows multiprocessing socket I/O during blocking calls by youknowone · Pull Request #9093 · RustPython/RustPython · GitHub
Open Graph Title: Detach Windows multiprocessing socket I/O during blocking calls by youknowone · Pull Request #9093 · RustPython/RustPython
X Title: Detach Windows multiprocessing socket I/O during blocking calls by youknowone · Pull Request #9093 · RustPython/RustPython
Description: This PR follows our AI policy. Summary Detach the VM thread around blocking Windows _multiprocessing.recv and _multiprocessing.send, following the existing socket I/O convention. These calls currently remain attached while waiting in Winsock, which can prevent stop-the-world collection from completing. Obtain an unlocked send buffer before detaching, so mutable-buffer locks are not held across the wait. Keep the buffer owner alive through reattachment. Convert the host-captured io::Error after reattachment instead of querying the thread's last error again. This is a shared-main fix found while investigating #9088. The captured Windows stack stops in proxy finalization while waiting for a new manager authentication response. Missing detachment is a source-confirmed hazard consistent with that symptom; the capture does not establish the server's GC state or prove this is the exact cause of that hang. Validation Independent ownership/source review and normal commit hooks passed. Linux stdlib threading compile-only check and strict Clippy passed (jobs1). These checks do not compile the Windows-conditional function bodies. Windows-specific compilation and existing canonical runtime coverage: pending hosted CI. No new remote-manager reproduction or concurrency/crash probe was run locally. One production file; no Lib changes, skips, timeout changes, or test assertion changes.
Open Graph Description: This PR follows our AI policy. Summary Detach the VM thread around blocking Windows _multiprocessing.recv and _multiprocessing.send, following the existing socket I/O convention. These calls curre...
X Description: This PR follows our AI policy. Summary Detach the VM thread around blocking Windows _multiprocessing.recv and _multiprocessing.send, following the existing socket I/O convention. These calls curre...
Opengraph URL: https://github.com/RustPython/RustPython/pull/9093
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:925c976a-48c4-a3de-c32c-4211f5f746ff |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 94C2:6365:3397812:44D399D:6B01FEAA |
| html-safe-nonce | 4eeddf73fe2112062804ccf3b1e6d6095fab594cf5ae80544c6ff92efb0ed07a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEMyOjYzNjU6MzM5NzgxMjo0NEQzOTlEOjZCMDFGRUFBIiwidmlzaXRvcl9pZCI6IjQyNzQ4OTEyNTA1NTkyMjE0MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6f57e3909c21bef5dee3c66d915d8921a22138de72be475d28017635afccb594 |
| hovercard-subject-tag | pull_request:4841254552 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9093/files |
| twitter:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| og:image:alt | This PR follows our AI policy. Summary Detach the VM thread around blocking Windows _multiprocessing.recv and _multiprocessing.send, following the existing socket I/O convention. These calls curre... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width