X Tutup
The Wayback Machine - https://web.archive.org/web/20240110155306/https://github.com/python/cpython/pull/112337
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-65920: Implement socket.sendfile with TransmitFile on Windows #112337

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

aisk
Copy link
Contributor

@aisk aisk commented Nov 23, 2023

  • Using the Overlapped.TransmitFile in _overlapped module to implement socket.sendfile;
  • Add Overlapped.getresultex to implement the timeout functionality, which have almost the same codes as exists Overlapped.getresult, just with diffenernt arguments. I split the Overlapped.getresult in to another function to share the codes.

And some thought on os.sendfile: #102898 (comment)

@aisk aisk changed the title gh-65920: Windows socket sendfile gh-65920: imlement socket.sendfile with TransmitFile on Windows Nov 23, 2023
@erlend-aasland erlend-aasland changed the title gh-65920: imlement socket.sendfile with TransmitFile on Windows gh-65920: Implement socket.sendfile with TransmitFile on Windows Jan 6, 2024
…WsHN.rst

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Lib/socket.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants
X Tutup