feat(libSceNet): implement sceNetResolverAbort #1502
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1502"
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 AcelezXYZ on 2026-10-08T10:05:23Z.
What
Implements
sceNetResolverAbort(rid, flags)in libSceNet (PPSA23566 imports it).sceNetResolverStartNtoa, flag 0x2 for the nextsceNetResolverStartAton. The preserved abort makes that lookup fail once withEINTR(0x80410104, errno 4) and sets the resolver error to the same value.EBADF; other flag bits throw.Signature, flags and the
EINTRresult follow the shadPS4 reimplementation of the PS4 library (AbortResolver/RunLookupinnet_resolver.cpp), not confirmed on a PS5 title.Tested
ctest: 441/442 pass. The only failure isguest_sce_net, which already aborts inCheckUnspecifiedIpv6in my sandbox (no IPv6 available), also on unmodifiedmain, before the new checks run.guest_sce_netpasses including the new checks: abort without flag has no effect, NTOA and ATON preservation are consumed independently by the next lookup, resolver error isEINTRafterwards, invalid arguments do not consume a preserved abort, unknown flags throw, unknown id returnsEBADF. A deliberately broken build (abort not consumed) makes the test fail.tools/check_conventions.py --base origin/mainpasses.#1514 edits the same TechnicalDebt line (PPSA23566 list); whichever merges second needs a one-line rebase.
Checklist
main(084aeeb6); no other open PR implements the same functions (all PR heads up to #1518 checked)NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T10:53:38Z.
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)docs/dev/TechnicalDebt.mdL58core/libs/prx/libSceNet/Export.cppL1073, L1082-1085, L1109-1112Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-08T11:28:29Z.
Review: APPROVED
Good implementation of
sceNetResolverAbort. This follows shadPS4's approach for the PS4 library and provides proper handling of preservation flags for future lookups.Strengths:
Technical notes:
This will improve network compatibility for titles that use DNS resolution with abort functionality. Ready to merge.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T09:29:19Z.
Closing: PPSA23566 imports
sceNetResolverAbort, but no title is shown stopping at it on main. Reopen when it's a title's next stop on main, with the log line.Pull request closed