Title: Support for os.sendfile for Windows · Issue #102898 · python/cpython · GitHub
Open Graph Title: Support for os.sendfile for Windows · Issue #102898 · python/cpython
X Title: Support for os.sendfile for Windows · Issue #102898 · python/cpython
Description: Feature or enhancement Currently, only POSIX operating systems have support for sendfile in python, but not Windows (or at least not on the same level, more about that later). There's a catch - windows also have support for this kind of ...
Open Graph Description: Feature or enhancement Currently, only POSIX operating systems have support for sendfile in python, but not Windows (or at least not on the same level, more about that later). There's a catch - win...
X Description: Feature or enhancement Currently, only POSIX operating systems have support for sendfile in python, but not Windows (or at least not on the same level, more about that later). There's a catch -...
Opengraph URL: https://github.com/python/cpython/issues/102898
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for os.sendfile for Windows","articleBody":"# Feature or enhancement\r\n\r\nCurrently, only POSIX operating systems have support for sendfile in python, but not Windows (or at least not on the same level, more about that later). There's a catch - windows also have support for this kind of functionality, called TransmitFile: \r\nhttps://learn.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-transmitfile\r\n\r\n# Pitch\r\n\r\nHaving this feature outside of asyncio (here it currently resides when using sock_sendfile, as link in \"previous discussion\" states) would help in closing the gap between what's supported on Windows and on POSIX OSes like macOS or Linux.\r\nBasic support for things like overlapped I/O (Windows acronym for asynchronous I/O) currently exists in lower level modules, like undocumented _overlapped module. Having this exposed in more user-friendly manner would give python better feature parity between various Tier-1 operating systems.\r\n\r\n# Previous discussion\r\n\r\nhttps://discuss.python.org/t/support-for-os-sendfile-for-windows/25020\r\n","author":{"url":"https://github.com/KhazAkar","@type":"Person","name":"KhazAkar"},"datePublished":"2023-03-22T09:01:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/102898/cpython/issues/102898"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8ae12228-1e63-ae51-2d73-dfc1dde17c09 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E722:2E4A1C:29DB62:38EB89:6A513FEE |
| html-safe-nonce | 34019e85f99e69e9c30ea11d9bd3196ff8e8dda55961b701e13525cc04255cfd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzIyOjJFNEExQzoyOURCNjI6MzhFQjg5OjZBNTEzRkVFIiwidmlzaXRvcl9pZCI6IjI2MDM0OTEyNTI4NzAzNDg2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c193821c3fcec97558c94f4bc2e2e540aa8218eb34ca0682be686b13824c0097 |
| hovercard-subject-tag | issue:1635333460 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/102898/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b081b1692171adaa8f990f231cd64fc2c14f8de2c6a4eb105b5daa01e04d7a08/python/cpython/issues/102898 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b081b1692171adaa8f990f231cd64fc2c14f8de2c6a4eb105b5daa01e04d7a08/python/cpython/issues/102898 |
| og:image:alt | Feature or enhancement Currently, only POSIX operating systems have support for sendfile in python, but not Windows (or at least not on the same level, more about that later). There's a catch - win... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KhazAkar |
| hostname | github.com |
| expected-hostname | github.com |
| None | e840f405b2718e8f2d55aafa9ff27dbce17e29d0c253011d05ea0fea3c78baff |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e876f00c5723f6080b9d294e4958fd4d506e6faf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width