net: map SO_REUSEADDR and SO_REUSEPORT on Linux and macOS hosts #1275
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!1275
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1275"
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?
@popcoder565 on GitHub · 2026-10-09 03:39 UTC · original
popcoder565:fix/net-posix-socket-options→main· +18 −0 · 2 files · 2 commits · openGuest socket-level options without a translation reach Winsock unchanged, but on other hosts they fail with ENOPROTOOPT, and Linux numbers these two options differently from the guest anyway. Four games in the logs attached to reports set SO_REUSEADDR: Sackboy (#62), Anno 1800 (#203), The Persistence (#385) and Superliminal (#665), whose FMOD live-update listener sets it each time it recreates its socket. On Linux and macOS each of those calls fails.
Translate both options to the host constants. The new check sets and reads back SO_REUSEADDR on every host.
@coderabbitai[bot] on GitHub · 2026-10-09 03:43 UTC · original · edited 2026-10-09 03:56 UTC
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
c6f6e39a-3ea1-41ee-a473-16f9a3754fa8📥 Commits
Reviewing files that changed from the base of the PR and between
7e7fb8bc67and172b659b06.📒 Files selected for processing (1)
tests/KernelFileSystemTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review.
📝 Walkthrough
Walkthrough
ConvertSocketOptionNamemaps guestSO_REUSEADDRandSO_REUSEPORToptions on non-Windows platforms. On Windows, these options use the existing fallback behavior.CheckSocketWakeupnow checks that enabledSO_REUSEADDRand, on non-Windows platforms,SO_REUSEPORTread back as nonzero.Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
172b6The socket-option mappings and round-trip checks align on the inspected paths. No actionable merge risk remains; the change appears ready subject to normal checks.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-10-09 03:43 UTC · original · reviewed
🧹 Nitpick comments (1)
ℹ️ Review info
⚙️ Run configuration
cf5c487a-3e4e-4f09-8130-dda81ccb2162📥 Commits
Reviewing files that changed from the base of the PR and between
7b9997baeaand7e7fb8bc67.📒 Files selected for processing (2)
src/libs/network.cpptests/KernelFileSystemTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.