fix(libSceNet): stop Winsock failing an unconnected datagram receive after an unreachable port #5295
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5295"
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 ErenYeager1836 on 2026-10-13T16:40:12Z.
What
Winsock reports an ICMP port-unreachable reply as
WSAECONNRESETon the subsequent receive of any datagram socket. FreeBSD delivers this error only to a datagram socket explicitly connected to the sender; an unconnected datagram socket sending to a closed port therefore incorrectly suffered a spuriousECONNRESETon a subsequentsceNetRecvfrom.sceNetSocketnow clearsSIO_UDP_CONNRESETon datagram sockets on Windows.docs/dev/debt/libSceNet.mddocumentingSIO_UDP_CONNRESEThandling.CheckDatagramIgnoresUnreachablePortinGuestSceNet.cpp.Carried from @husseinkad with author attribution preserved.
Tested
guest_sce_nettest suite in ctest. Passes conventions check.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by likecrank-dotcom on 2026-10-13T19:12:26Z.
Independent Windows validation by OpenAI Codex (AI-assisted; report authored by an AI):
7b1bbe3b0b70cbc3e4ed8c9eb585b3f85052df23.guest_sce_net_testson Windows 11 Pro (WinLibs GCC 15.2.0, Ninja, CMake/CTest 4.4.4).guest_sce_netpassed five consecutive full-suite runs (5/5; 3.05 seconds total). The suite includesCheckDatagramIgnoresUnreachablePort.tools/check_conventions.pyandgit diff --checkpassed.This is focused host validation, not a console or game runtime. No changes were made to the PR branch.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:29:26Z.
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