Repository navigation
feat(libSceNet): accept sceNetClearDnsCache with no library DNS cache to drop - #8013
Merged
oneandonlydean merged 1 commit intoOct 20, 2026
Conversation
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
12 tasks done
Contributor
|
Windows run (the description says Windows was not compiled): Windows 11 Home 26300, Ryzen 5 9600X, WinLibs GCC 15.2.0, Release, BUILD_TESTING=ON. This PR merged onto
AI-assisted: yes (Claude Code); results above were run on this machine. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
sceNetClearDnsCachethrewnot implemented, and its debt entry listed the signature as unknown. SharpProsperoSocket.csdocuments it asint sceNetClearDnsCache(int flags), which drops the resolver's DNS cache.Every
sceNetResolverStart*lookup in AnyPS5 goes to the host resolver, so the library keeps no cache of its own, and a later lookup already sees what the host resolver returns.sceNetClearDnsCache(0)therefore returns 0 without doing anything, and leaves the host's own cache alone. Nonzero flags throw, as insceNetResolverStartNtoa6, because their meaning is unknown. The debt entry now records this.Tested
Ubuntu 26.04.1, kernel 7.0.0-38, GCC 15.2.0, Release, full build with
BUILD_TESTING=ON. Windows was not compiled. No title was run.guest_sce_net, run in a network namespace with IPv6 onlo(unshare -rn), because on this host IPv6 is disabled onloand the test aborts before its resolver checks (test(libSceNet): accept every unusable IPv6 loopback error in guest_sce_net #7987):sceNetClearDnsCache(0)returns 0.localhoston the same resolver still returns 127.0.0.1, andsceNetResolverGetErrorreports 0.main, where the call throws.tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pyfinds no conflicting lines. It could not compare fix(libSceNet): stop Sackboy loading retries on peer sockets #5836, test: organize library tests and label CTest suites #6044, Macos port #7201 and feat: macOS on Apple Silicon host support (Rosetta 2 and MoltenVK) #7332, which conflict withmain; none of them changessceNetClearDnsCache.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)