fix(libSceHttp2): return DNS lookup errors #17570
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17570"
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 lisn0 on 2026-11-08T22:42:20Z.
What
Return
0x804101e6when DNS lookup fails instead of throwing, including after the configured retries. Preserve the socket error mapping that returns0x8041013dfor a refused connection. Add a nonexistent-host transport regression and update the retry test.A native PS5 HTTP probe on firmware 13.590.001 confirmed
0x804101E6for NXDOMAIN and0x8041013Dfor connection refusal, both as synchronous return values and as asynchronous completion results. The probe source and logs are in #17735. Async send and completion are implemented separately in #11630.Tested
A contributor title test also reached the LEGO Batman: Legacy of the Dark Knight (PPSA16833) menu in a 600-second no-network run with this change and #11630. With #11630 alone, startup stopped at the DNS lookup error. See the report for the exact build and title prerequisites.
Linux x86-64, GCC 16.2.1, Release:
HTTP2 focused suite on the updated branch: 14 tests passed.
Before merging current main, the relinker-only build and its 812 tests passed. The full runtime build succeeded; full CTest reported three failures out of 4,580 tests.
In focused reruns, the earlier branch head and its upstream parent both passed
guest_stream_closeandavplayer_http_patched_modules, and both segfaulted inagc_driver_tessellation. The initial full run timed out in the first two tests; the cause was not established. The tessellation failure matches the RADV/Mesa version range described in #5444, but its stack was not captured in these runs.The earlier branch head passed all 14 HTTP2 tests twice, including
guest_http2_transport.python3 tools/check_conventions.py --base upstream/mainpassed. The overlap tool could not compare shared files in #14212 and #16231; manual review found debt formatting and async completion work respectively, with no duplicate DNS mapping.Linux x86-64 Release integration run: main
da47ac971cplus this PR at06457e01f1, #11630 atb17933dfd4, and #17735 at6a366fb743. The combined validation commit passed all 14 focused HTTP/2 tests and three additional consecutive runs ofguest_http2_transport. The transport regression checked that async completion carries the NXDOMAIN and refusal codes, and that a 100 ms overall timeout on a stalled loopback request produces0x817B1068within the test timing bounds.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 gabichuuuuu on 2026-11-08T23:28:05Z.
Review: COMMENTED
Windows run of head
709329ac6e, merged ontomain286b14d2f7in one tree with 41 other small open PRs that touch different files. Setup: Windows 11, WinLibs GCC 15.2 r7 (x86_64-ucrt-posix-seh, the CI toolchain), Release,BUILD_TESTING=ON.guest_http2_auth_statuswith--repeat until-fail:5: 5 / 5 pass.guest_http2_dns_firstwith--repeat until-fail:5: 5 / 5 pass.guest_http2_early_responsewith--repeat until-fail:5: 5 / 5 pass.guest_http2_gzip_headerswith--repeat until-fail:5: 5 / 5 pass.guest_http2_gzip_memberswith--repeat until-fail:5: 5 / 5 pass.guest_http2_http1with--repeat until-fail:5: 5 / 5 pass.guest_http2_http1_cookieswith--repeat until-fail:5: 5 / 5 pass.guest_http2_redirectswith--repeat until-fail:5: 5 / 5 pass.guest_http2_ssl_callbackswith--repeat until-fail:5: 5 / 5 pass.guest_http2_system_rootswith--repeat until-fail:5: 5 / 5 pass.guest_http2_transportwith--repeat until-fail:5: 5 / 5 pass.main'sTransport.cppand this PR's test: 5 / 5 runs fail.