Skip to content

Conversation

@zamderax
Copy link
Contributor

@zamderax zamderax commented Nov 1, 2025

Adds canImport(ucrt) branches in RetryDelaySequence and Syscalls;

I added uses of ucrt._getpid on Windows and I verified that swift build and swift build --build-tests succeed on Windows with Swift 6.2

Some Context:

This allows me and others to create a custom gRPC ClientTransport that isn't based off of swift-nio. It looks like adding windows support to Swift NIO is a very heavy lift, so in the interim it's possible for me to create a ClientTransport that uses https://learn.microsoft.com/en-us/windows/win32/winhttp/about-winhttp and use .when and #if os(windows) in my code to swap out the transport so that I can have a Swift Client that uses the WinHTTP backend.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 1, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: glbrntt / name: George Barnett (0bf5bb6)

@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Nov 3, 2025
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Thanks for providing the context too, sounds like a fun project

@glbrntt glbrntt enabled auto-merge (squash) November 3, 2025 09:20
@glbrntt glbrntt merged commit 11dbbd9 into grpc:main Nov 3, 2025
47 checks passed
@Joannis Joannis deleted the windows-ucrt-support branch November 4, 2025 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants