feat(libs): report Http2, Ssl and Net memory pool statistics #1119
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1119"
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 TideOPL on 2026-10-07T13:13:47Z.
What
sceHttp2GetMemoryPoolStats,sceSslGetMemoryPoolStatsandsceNetGetMemoryPoolStatsthrew. PPSA16064 (Minecraft Dungeons II, Unreal Engine) queries all three while its HTTP module starts.sceHttp2Init,sceSslInitorsceNetPoolCreate, reports it, and reports a peak and current use of 0. The offline Http2/Ssl models and the host-socket Net library never allocate from these pools.*MemoryPoolStatsstructures (pool size, peak, current, plus a 32-bit reserved field for Http2 and Ssl). They're not confirmed for the PS5; TechnicalDebt records that.EBADFfor an unknown pool andEINVALfor a null output, like its other pool calls. Http2 and Ssl throw for both, since their error codes are unknown. Terminating a context or destroying a pool forgets its size.sceHttp2SetResolveRetry(int id, int32_t retry), which the title calls next, accepts and ignores its value like the other Http2 settings.Tested
ctest: 393/393.guest_http2,guest_ssl,guest_sce_net: the reported sizes;guest_sce_netalso checks the null-output and unknown-pool errors.Asking for ideas
If anyone has the PS5 layouts or error codes for these (e.g. from a title that checks them), I'll match them.
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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-07T13:54:46Z.
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)core/libs/prx/libSceHttp2/Export.cppL4-5, L10Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T04:37:29Z.
Progress report (
73ac9ef→d1627cb)📉 System libraries: 85.39% (-0.01%, +4 implemented, +4 declared functions)
✅ 4 implemented
sceHttp2GetMemoryPoolStatssceHttp2SetResolveRetrysceNetGetMemoryPoolStatssceSslGetMemoryPoolStats🆕 4 declared as stubs
sceHttp2WebSocketCloseAsyncsceHttp2WebSocketCreateRequestsceHttp2WebSocketSendDataMessageAsyncsceHttp2WebSocketSendTextMessageAsyncImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T05:30:40Z.
#1092 just landed and touches the same spots in
libSceHttp2/Export.cpp(includes and the statics above the exports), so this needs a rebase onto main. Keep both: the completion queue from #1092 and your pool map.