feat(libSceHttp2): complete asynchronous requests through the kqueue option #1092
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1092"
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 kjhq on 2026-10-07T10:39:17Z.
What
No network is emulated, so every libSceHttp2 request fails with the library's network error (0x80436063). Until now
sceHttp2SendRequestAsyncreturned that error synchronously andsceHttp2WaitAsyncreturned it too. Titles that use the asynchronous API expect the failure to arrive as a completion instead:sceHttp2SendRequestAsynctakes the kqueue option (newHttp2AsyncOptioninSceTypes.hpp: equeue at 0, user event id at 8, user data at 16; layout inferred from PPSA17221), queues anHttp2AsyncResultfor the request withresult= network error, triggers the user event on that equeue with the user data, and returns 0.sceHttp2WaitAsyncreturns and removes the oldest completion of the request.sceHttp2DeleteRequestdrops pending completions.NotImplemented_nid_no_patch).event_typevalue is unknown and left 0.PPSA17221 (Minecraft) completes its request object only after
sceHttp2SendRequestAsyncreturns, and its handler for a synchronous failure callsshared_from_thisbefore that, so a synchronous failure crashed it.guest_http2now registers a user event, sends asynchronously, receives the event with the request id and user data, reads the completion withsceHttp2WaitAsync, and checks the throwing cases.Title
PPSA17221 (Minecraft) needs #716 to load the modules in its app root, so every run below is current
main+ #716 + the PRs of this set (#1088, #1090–#1096), plus local changes outside it: dialog, NpAuth and TextToSpeech2 stubs that open PRs cover (#560, #925, #301) and a GPU end-of-pipe change that is not submitted. With all of them the title loads a world. The line below is from a run with only this PR left out, Windows 11, WinLibs GCC, normal user session.Without it the title terminates about 8 s after start:
Tested
Debian 13 (WSL2), GCC 14.2.0, Release: full
ctest390/390 passed (GPU tests skipped: no Vulkan device in WSL), includingguest_http2.Windows 11, WinLibs GCC: PPSA17221 with this PR and the rest of the set loads a world (runs described above). Not tested with Windows
ctest.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.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-07T13:54:08Z.
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.mdL211core/libs/prx/libSceHttp2/Export.cppL4-5, L10docs/dev/TechnicalDebt.mdL211sceHttp2SendRequestAsyncdocs/dev/TechnicalDebt.mdL211Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T04:37:59Z.
Progress report (
0d3c1ee→1cc4d25)📉 System libraries: 86.54% (-0.07%, -2 reverted functions)
⚠️ 2 went back to stubs
sceHttp2SendRequestAsyncsceHttp2WaitAsyncImported from boykopovar/AnyPS5. Originally posted by samimalokozay7009-rgb on 2026-10-17T14:15:05Z.
Review: COMMENTED
Khan