Skip to content

Remove parts of #139 relying on the Network framework #147

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

Merged
merged 2 commits into from
Dec 19, 2019
Merged

Remove parts of #139 relying on the Network framework #147

merged 2 commits into from
Dec 19, 2019

Conversation

PopFlamingo
Copy link
Contributor

@PopFlamingo PopFlamingo commented Dec 18, 2019

Fixed issue:
The #139 bug fix is unfortunately not compatible with older (< macOS 10.14) Apple platforms versions where the Network framework didn't have the IPv4Address and IPv6Address types yet.

Solution:
Use the UNIX implementation across all platforms to avoid unnecessary
complexity introduced by platform specific implementations.

Alternative solutions:
Runtime OS version checks dispatching the calls to the right implementation could also work but seem unnecessarily complicated compared to simply using the UNIX version everywhere.

Use the UNIX implementation across all platforms to avoid unnecessary
complexity introduced by platform specific implementations
@weissi weissi requested a review from Lukasa December 19, 2019 10:55
Copy link
Contributor

@weissi weissi 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

@weissi weissi added the 🔨 semver/patch No public API change. label Dec 19, 2019
@weissi weissi added this to the 1.1.0 milestone Dec 19, 2019
@weissi weissi merged commit 871c655 into swift-server:master Dec 19, 2019
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