Skip to content

docs(design): plan Windows TransmitFile zero-copy network send (#2130) - #3912

Merged
oferchen merged 1 commit into
masterfrom
design/windows-transmitfile
May 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
design/windows-transmitfile

Conversation

@oferchen

@oferchen oferchen commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds docs/design/windows-transmitfile.md capturing the plan for adding a Windows zero-copy file-to-socket sender path via Winsock2 TransmitFile, alongside the existing Linux sendfile and macOS sendfile sender paths in fast_io.
  • Documents the API (windows crate bindings, no raw FFI), the overlapped-socket and local-FS constraints, integration via a new PlatformSendFile trait that mirrors PlatformCopy, IOCP completion-port composition, and key risks (overlapped invariant, partial-completion divergence, AV interception, driver chunk default).

Test plan

  • wc -l docs/design/windows-transmitfile.md reports < 130 lines
  • No code changes; CI required checks (fmt+clippy, nextest, Windows, macOS, Linux musl) should all pass unchanged

Capture the design for adding a Windows zero-copy file-to-socket
sender path via Winsock2 TransmitFile, alongside the existing
Linux sendfile and macOS sendfile sender paths in fast_io.

Documents the API (windows crate bindings, no raw FFI), the
overlapped-socket and local-FS constraints, integration via a new
PlatformSendFile trait that mirrors PlatformCopy, IOCP completion
port composition, and key risks (overlapped invariant, partial
completion divergence, AV interception, driver chunk default).
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 7, 2026
@oferchen
oferchen merged commit c093278 into master May 7, 2026
8 checks passed
@oferchen
oferchen deleted the design/windows-transmitfile branch May 8, 2026 03:47
oferchen added a commit that referenced this pull request May 18, 2026
#3912)

Capture the design for adding a Windows zero-copy file-to-socket
sender path via Winsock2 TransmitFile, alongside the existing
Linux sendfile and macOS sendfile sender paths in fast_io.

Documents the API (windows crate bindings, no raw FFI), the
overlapped-socket and local-FS constraints, integration via a new
PlatformSendFile trait that mirrors PlatformCopy, IOCP completion
port composition, and key risks (overlapped invariant, partial
completion divergence, AV interception, driver chunk default).
oferchen added a commit that referenced this pull request Aug 24, 2026
#3912)

Capture the design for adding a Windows zero-copy file-to-socket
sender path via Winsock2 TransmitFile, alongside the existing
Linux sendfile and macOS sendfile sender paths in fast_io.

Documents the API (windows crate bindings, no raw FFI), the
overlapped-socket and local-FS constraints, integration via a new
PlatformSendFile trait that mirrors PlatformCopy, IOCP completion
port composition, and key risks (overlapped invariant, partial
completion divergence, AV interception, driver chunk default).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant