Repository navigation
Conversation
The 11.00 wait body passes the caller's timeout to sceKernelWaitSema, so a zero timeout polls instead of blocking, the timeout surfaces as 0x817b1079 and *timeout receives the remaining microseconds. A null result is 0x817b1225 and a non-null trailing argument or non-zero result reserved field is 0x817b11fe. The submission bodies ignore their trailing pointer, which this tree keeps doing because PPSA22408 passes one even though 11.00 rejects it.
PPSA02195 polls with a zero timeout and aborts the request on an immediate timeout, so the blocking behaviour stays. The 11.00 body forwards the pointer to sceKernelWaitSema, so whether zero blocks is a kernel question this dump cannot answer; the debt entry records it. The expired-wait code is corrected to 0x817b1079 and the result and trailing-argument validation follows the same bodies.
sceHttp2WaitAsync keeps the deadline so a timed wait writes the remaining microseconds back through the caller pointer, matching the forwarded kernel wait. The async wait test asserts the expired timeout is cleared.
Apply review request from 2026-11-05: resolve the GuestHttp2Transport Mode enum and libSceHttp2 debt-doc conflicts.
…letions # Conflicts: # core/libs/tests/GuestHttp2Transport.cpp # docs/dev/debt/libSceHttp2.md
…letions # Conflicts: # core/libs/prx/libSceHttp2/Export.cpp
…letions # Conflicts: # core/libs/tests/GuestHttp2Transport.cpp
…letions # Conflicts: # core/libs/prx/libSceHttp2/Export.cpp # core/libs/tests/GuestHttp2.cpp # docs/dev/debt/libSceHttp2.md
The merge of main folded the offline requests entry into the asynchronous requests entry. Restore the two points it dropped: offline mode in PPSA24263, and that the console's code for an offline libSceHttp2 send is not measured. Also say that the offline send triggers the user event itself.
…ovar#15996 The merge of main took this branch's asynchronous calls over boykopovar#15996 and dropped its debt entry. Record that these calls follow the firmware 11.00 module, that the module bundled with PPSA20397 stubs sceHttp2ReadDataAsync with 0x80436063 and never reads the wait timeout, and that the effect on that title is not measured. Evidence from boykopovar#15996 (akkadbakkad89).
sceHttp2WaitAsync refused every zero-timeout call before it looked at the request's completions. With APS5_NET_DISCONNECTED=1 the send queues its 0x80431063 completion at once, and PPSA30839 then polls for it with a zero timeout, so the title stopped at 6 s where main runs on (main returns any queued offline completion whatever the timeout). A zero-timeout wait now returns a completion that is already queued: the semaphore is signalled then, so the wait returns at once whichever way the console reads zero. With nothing queued it still throws. Title runs by milescoviello; fix-up on edubox's branch.
…letions # Conflicts: # core/libs/tests/GuestHttp2Transport.cpp # docs/dev/debt/libSceHttp2.md
Queue one 0x817b1080 completion per operation in flight when sceHttp2DeleteRequest runs, after stopping the transport, so a blocked sceHttp2WaitAsync returns 0 with the aborted result of the operation's own kind and the read buffer is no longer written when the delete returns. Phase deadlines also apply to a transport that ignores the overall timeout.
A request deleted between the id lookup and the in-flight count still started a worker that could read into the guest buffer after the delete. ReadDataAsync and both SendRequestAsync paths now return the invalid id error under the state lock instead. Drop the unused ERROR_NETWORK.
Progress report (5cf487d → 301e49b)➖ System libraries: 47.94% (+0.0%, +1 implemented, -1 reverted functions) ✅ 1 implemented
|
| Library | Name |
|---|---|
| libSceHttp2 | sceHttp2ReadDataAsync |
Changed libraries (implemented exports)
| Library | Before | After | Change |
|---|---|---|---|
| libSceHttp2 | 25/71 (35.21%) | 25/71 (35.21%) | +0.00% |
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
sceHttp2SendRequestAsync,sceHttp2ReadDataAsyncandsceHttp2WaitAsyncthrew. This completes them over the existing transport:sceHttp2SendRequestAsynccopies the body, runsSendon a worker and queues anHttp2AsyncResultwhoseresultis the transport's result, then triggers the kqueue user event (equeue at 0, event id at 8, user data at 16, the layout inferred from PPSA17221).sceHttp2ReadDataAsyncdoes the same forReadand reports the bytes read inresult.sceHttp2WaitAsyncwaits for the oldest completion. A nulltimeoutwaits indefinitely;*timeout == 0throws because whether zero blocks is unknown (PPSA02195 polls with a zero timeout and aborts the request on an immediate timeout, but the 11.00 kernel path is not in the dump), recorded in the debt entry; a nonzero*timeoutis a microsecond deadline that returns0x817b1079when it expires, which is the 11.00 mapping of the kernel's0x8002003c. A nullresultreturns0x817b1225and a non-null trailing argument or a non-zeroreservedfield of the result returns0x817b11fe. Each request owns a stable completion state; deleting a request or its parent retires that state, wakes waiters with the invalid-id error, and drops queued and later completions without triggering a user event. Publication and retirement share the request state lock, so a completion cannot be delivered after deletion returns.event_typeis 0 for send and 1 for read, confirmed by the 11.00 completion kinds (+0x1600pairs mapped at0x9a4f).*timeoutreceives the remaining microseconds, following the forwarded kernel pointer; whether a zero timeout blocks is still an open kernel question recorded in the debt entry, an unregistered user event is not detected at submission, and a transport exception is rethrown fromsceHttp2WaitAsync.Evidence
The argument and timeout contract comes from the decrypted firmware 11.00
libSceHttp2.sprx:sceHttp2SendRequestAsyncat0x1940/internal0x4a60,sceHttp2ReadDataAsyncat0x1b20/0x4e20andsceHttp2WaitAsyncat0x1c20/0x9a00. The wait forwards the caller's pointer tosceKernelWaitSema(sema, 1, timeout)(0x4790) and remaps the kernel timeout0x8002003cto0x817b1079(0x9a79); the result and trailing-argument checks are at0x1d21,0x1ccaand0x1cd3, and the completion kind at+0x1600selectsevent_typethrough the table at0x271d0. Because the 11.00 submission bodies reject a non-null trailing pointer with0x817b11fewhile PPSA22408 passes one, the trailing pointer stays ignored and the debt entry records the version split.Tested
Linux (CachyOS), GCC 16.2.1.
guest_http2submits an asynchronous request whose body length does not match the declared content length, then checks the user event payload and thatsceHttp2WaitAsyncrethrows the worker's exception.guest_http2_transportdrives a real loopback HTTP/2 send and read through the asynchronous API, plus the async-failure, wait-versus-delete, two-waiter, parent-teardown, deletion-after-publication, optional-argument and expired-wait cases. The expired-wait case pins0x817b1079, and the null-timeout case stalls the response and checks that the wait returns only after the completion. The zero-timeout case is not pinned because its console behaviour is unknown.guest_http2,guest_http2_cookies,guest_http2_transportandguest_http2_early_responsepass in the Release build.Title: PPSA02195 polls
sceHttp2WaitAsyncwith*timeout == 0and aborted the request as soon as it received an immediate timeout; that remains the only observation and the case stays unimplemented until a console measurement settles it. It was run with other local changes on the same tree.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)git merge-treeon the current heads)