feat(npwebapi2): implement sceNpWebApi2SetRequestTimeout #2853
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2853"
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 alfalfa-star on 2026-10-10T16:37:03Z.
Why
Pinball FX (PPSA08755) stops on
main7a0c838while its main menu appears (log from @leorossi2005):What
Implements
sceNpWebApi2SetRequestTimeout(request id, timeout), which still calledNotImplemented_nid_no_patch.Like the other request calls in this library, it succeeds without checking the request id. shadPS4 returns
LIB_CONTEXT_NOT_FOUND,USER_CONTEXT_NOT_FOUNDorREQUEST_NOT_FOUNDfor unknown ids, but this library keeps no request table (CreateRequesthands out counter values;AbortRequest,AddHttpRequestHeaderandDeleteRequestaccept any id), so those checks wait for request tracking across all of them. No request reaches a service (sceNpWebApi2SendRequestfails withUNAVAILABLEat once), so no timeout can expire. The signature follows shadPS4.docs/dev/debt/libSceNpWebApi2.mdlists it under Silent stubs with that reason.sceNpWebApi2AddWebTraceTag, came with PPSA33016.guest_np_web_api2creates a request, sets its timeout and deletes it; it aborts withmain'sExport.cpp.Tested
Linux (Arch, GCC 15), Release build of this branch rebased onto
maine2cd21314:ctest: 1099 of 1100 pass.agc_driver_tessellationsegfaults on plainmainon this machine as well.tools/check_conventions.py --base upstream/mainpasses.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:38:42Z.
Progress report (
e46c695→70389c0)📈 System libraries: 88.25% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceNpWebApi2SetRequestTimeout⚪ 1 behaviourally empty (constant return or throw)
sceNpWebApi2SetRequestTimeoutImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T19:18:07Z.
Same as #2852: which title stops at
sceNpWebApi2SetRequestTimeouton main? A success stub needs a title it unblocks.Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T22:29:28Z.
Windows validation of the current head
23aeebfcmerged ontomain262c0316.Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build including thelibstarget.ctest -j8 -E "^agc_|^video_out_flip": 391/392. The one failure isguest_pthread_starthitting its 60 s Windows timeout under-j8load; it passes 2/2 in 2.5 s when run alone and does not touch this change (it also ran 39 s under the same load on unchangedmainhere).guest_http2andguest_np_*tests pass.Validation run with Claude Code assistance.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T00:10:04Z.
Review: DISMISSED
Thanks for the Windows run and the TechnicalDebt entry. Before this can go in:
sceNpWebApi2SetRequestTimeoutonmainand it is still unanswered. Please add the title ID and thenot implementedlog line where it stops; the import alone isn't enough.core/libs/prx/libSceNpWebApi2/Export.cpp:156: it succeeds for any request id. shadPS4 routes the call throughsetRequestTimeout(request_id, timeout)(np_web_api2.cpp:413), so please check what it validates and either follow it or say in the TechnicalDebt line why not.Happy to look again once a title that reaches it is shown.
Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-11T09:45:22Z.
No title I can run reaches
sceNpWebApi2SetRequestTimeouton currentmain(90c152e8):color views of several array slices are unsupported(#2102). My local test branch gets past that and other stops; there it played 385 s with scripted input, through New Game and a save, without callingsceNpWebApi2SetRequestTimeout.not implementedline before it.I'm converting this to a draft until a title stops at it. Then I'll post the title ID and the log line and mark it ready.
Changed (rebased onto
main):LIB_CONTEXT_NOT_FOUND,USER_CONTEXT_NOT_FOUNDorREQUEST_NOT_FOUND. This library keeps no request table:CreateRequesthands out counter values, andAbortRequest,AddHttpRequestHeaderandDeleteRequestaccept any id. So following shadPS4 means tracking ids across all of them, which is a separate change. The TechnicalDebt line now says this, under Silent stubs, wheremain's conventions check now wants it.guest_np_web_api2now creates a request, sets its timeout and deletes it. It aborts withmain'sExport.cpp.Tested: Linux, GCC, Release, RX 9070 XT (RADV): full
ctest813/813 (4video_out_flip_*skipped) onmain90c152e8merged with this branch, #2848 and #2851;tools/check_conventions.pypasses.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T09:46:34Z.
Review: DISMISSED
Thanks for the answer. Keeping this as a draft until a title actually stops at
sceNpWebApi2SetRequestTimeoutis right: please post the title ID and thenot implementedlog line when you have it, then mark it ready.Imported from boykopovar/AnyPS5. Originally posted by leorossi2005 on 2026-10-14T00:11:36Z.
@alfalfa-star @adriadam10 Hi, i've got a title that stops with "sceNpWebApi2SetRequestTimeout not implemented" if it's useful to merge this PR, this happens on main
7a0c838Nvidia GPU, AMD CPU
It's Pinball FX (PPSA08755), it loads and the main menu i think starts to appear but it stops after some frames and output this
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T01:24:25Z.
@alfalfa-star Pinball FX (PPSA08755) stops here on main, see leorossi2005's log above. Please rebase and mark it ready.
Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-14T05:27:26Z.
@oneandonlydean rebased onto
maine2cd21314and marked ready. The description now names Pinball FX (PPSA08755) and its log line. Main moved the debt entries into per-library files, so the entry is now under Silent stubs indocs/dev/debt/libSceNpWebApi2.md. Fullctestpasses apart fromagc_driver_tessellation, which segfaults on plainmainhere too.@adriadam10, the earlier change requests were about not having a title; Pinball FX is that title now.
Thanks @leorossi2005 for the log.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T06:23:48Z.
Thanks for the rebase and the title. The full build is green on this head; before it goes in it needs one run by someone other than the author: Pinball FX (PPSA08755) on current
mainwith and without this PR, showing it gets pastsceNpWebApi2SetRequestTimeout. Could someone who has the title post one?Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T10:42:29Z.
Checked:
guest_np_web_api2aborts without the change (theNotImplemented_nid_no_patchthrow) and passes with it; scoped build and ctest (33 tests) are green on this head merged onto main. The stub matches the other request calls of this library and the debt entry says why. Pinball FX getting past the menu is not verified by us; merging since the stop in the log is exactly this call.