Support for os.sendfile for Windows #102898
Labels
extension-modules
C modules in the Modules dir
OS-windows
topic-IO
type-feature
A feature request or enhancement
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 functionality, called TransmitFile:
https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-transmitfile
Pitch
Having 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.
Basic 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.
Previous discussion
https://discuss.python.org/t/support-for-os-sendfile-for-windows/25020
The text was updated successfully, but these errors were encountered: