fix(libSceNet): auto-bind an unbound stream socket on listen #5349
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5349"
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?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T17:39:01Z.
What
On Windows, Winsock requires a stream socket to be bound before
listen, while FreeBSD implicitly binds an unbound socket to a wildcard address and ephemeral port. Bind an unbound IPv4 or IPv6 socket before listening, and skip that bind when a failed connect has already assigned a local port.Adds IPv4/IPv6 listen-without-bind coverage, including connect/accept/data exchange, and a regression case for listening after a refused connection. Carries Hussein Kadhim's ready fix branch; its two implementation commits retain his authorship. The final commit moves the test helpers to avoid conflicts with open PRs #4669 and #4988.
Tested
guest_sce_net_tests;ctest -R '^guest_sce_net$'passed (1/1).mainand passing on the final branch on Windows, with six successful runs; the Windows build and runtime checks were performed by him.Checklist
main; no other open PR implements the same functionsCloses #5339
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T17:48:22Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/tests/GuestSceNet.cppL651core/libs/prx/libSceNet/Export.cppL462core/libs/tests/GuestSceNet.cppL569Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-13T22:58:24Z.
Windows check, where the unbound
listenfails today: Windows 11 (26300), WinLibs GCC 15.2.0, Release, headdc39e89e1merged ontomain30f961266.guest_sce_netpasses (2.5 s).main'slibSceNet/Export.cppand the PR's test: it fails. The test aborts (exit0xc0000409), consistent withsceNetListenon an unbound TCP socket failing withEINVALon Windows.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:28:25Z.
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.
Pull request closed