Repository navigation
feat(libs): report Http2, Ssl and Net memory pool statistics - #1119
Merged
oneandonlydean merged 2 commits intoOct 9, 2026
Merged
Conversation
sceHttp2GetMemoryPoolStats, sceSslGetMemoryPoolStats and sceNetGetMemoryPoolStats threw. PPSA16064 (Minecraft Dungeons II, Unreal Engine) queries all three while its HTTP module starts, and aborted there. Each library now records the pool size given at sceHttp2Init, sceSslInit or sceNetPoolCreate and reports it with a peak and current use of 0: the offline Http2 and Ssl models and the host-socket Net library allocate nothing from these pools. The layouts follow the PS4 SDK's *MemoryPoolStats structures. Net returns EBADF for an unknown pool and EINVAL for a null output, like its other pool calls; Http2 and Ssl throw for both, as their error codes are unknown. Terminating a context or destroying a pool forgets its size. sceHttp2SetResolveRetry, which the title calls next, accepts and ignores its value like the other Http2 settings. The four Http2 WebSocket exports the title imports are added as unimplemented. guest_http2, guest_ssl and guest_sce_net check the reported sizes; guest_sce_net also checks the null-output and unknown-pool errors.
9 tasks done
9 tasks done
9 tasks done
Progress report (73ac9ef → d1627cb)📉 System libraries: 85.39% (-0.01%, +4 implemented, +4 declared functions) ✅ 4 implemented
🆕 4 declared as stubs
|
Collaborator
# Conflicts: # core/libs/prx/libSceHttp2/Export.cpp
9 tasks done
This was referenced Oct 8, 2026
9 tasks done
9 tasks done
9 tasks done
9 tasks done
12 tasks done
12 tasks done
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
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)