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

Strip WSA_FLAG_NO_HANDLE_INHERIT on system < Windows 7 SP1 #126

Merged

Conversation

stevefan1999-personal
Copy link
Contributor

@stevefan1999-personal stevefan1999-personal commented Oct 15, 2024

Partially fixes #80, especially need to strip it for reqwest, and by extension socket2 to run. That API call only exists on Windows 7 SP1 and above, so socket2 calls to it breaks by returning unsupported. We don't care about socket inheritance at this point.

https://github.com/rust-lang/socket2/blob/3a938932829ea6ee3025d2d7a86c7b095c76e6c3/src/sys/windows.rs#L253

https://github.com/rust-lang/socket2/blob/3a938932829ea6ee3025d2d7a86c7b095c76e6c3/src/sys/windows.rs#L406

src/Thunks/WS2_32.hpp Outdated Show resolved Hide resolved
@mingkuang-Chuyu mingkuang-Chuyu changed the base branch from master to Fea/YY/PendingPR October 17, 2024 02:29
@mingkuang-Chuyu mingkuang-Chuyu self-requested a review October 17, 2024 02:29
@mingkuang-Chuyu mingkuang-Chuyu merged commit 2495157 into Chuyu-Team:Fea/YY/PendingPR Oct 17, 2024
1 check failed
@mingkuang-Chuyu
Copy link
Collaborator

@stevefan1999-personal Thanks for your support.

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.

让rust程序支持Windows XP RTM(rust程序兼容性问题请统一在此帖回复)
3 participants