net: drop MSG_WAITALL when combined with MSG_PEEK on Windows #508
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!508
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/508/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@FirasDev on GitHub · 2026-09-07 22:15 UTC · original
FirasDev:fix-windows-peek-waitall→main· +7 −1 · 1 files · 1 commits · closed without mergingFixes #505.
Winsock's recv() doesn't support MSG_PEEK and MSG_WAITALL together —
POSIX allows it, Windows doesn't. These got merged into one shared
code path in
46850f9, which broke kernel_file_system on Windows(the new CheckSocketWakeup check specifically).
Fix drops WAITALL on Windows when PEEK is also set, same as the
existing DONTWAIT/NOSIGNAL carve-out a few lines above it in
ConvertMessageFlags. Worth noting this means Windows won't actually
block for the full length when peeking data that hasn't fully
arrived yet across multiple segments — fine for this test and the
common case, but not a complete WAITALL emulation. Open to doing the
fuller loop-based version instead if that's preferred.
Ran the full test suite locally on Windows/clang-cl before and after:
kernel_file_system was the only failure before (matching #505
exactly), zero failures after.
Used AI to help track down the root cause and draft the diff; reviewed
the change and ran the tests myself before opening this.
@Nmzik on GitHub · 2026-10-03 17:16 UTC · original
Credited
Pull request closed