feat(http2): complete asynchronous send and read #11630

Open
edubox wants to merge 39 commits from upstream-pr/11630 into main
edubox commented 2026-10-26 23:59:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by edubox on 2026-10-26T23:59:59Z.


What

sceHttp2SendRequestAsync, sceHttp2ReadDataAsync and sceHttp2WaitAsync threw. This completes them over the existing transport:

  • sceHttp2SendRequestAsync copies the body, runs Send on a worker and queues an Http2AsyncResult whose result is 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).
  • sceHttp2ReadDataAsync does the same for Read and reports the bytes read in result.
  • sceHttp2WaitAsync waits for the oldest completion. A null timeout waits indefinitely; *timeout == 0 throws 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 *timeout is a microsecond deadline that returns 0x817b1079 when it expires, which is the 11.00 mapping of the kernel's 0x8002003c. A null result returns 0x817b1225 and a non-null trailing argument or a non-zero reserved field of the result returns 0x817b11fe. 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_type is 0 for send and 1 for read, confirmed by the 11.00 completion kinds (+0x1600 pairs mapped at 0x9a4f). *timeout receives 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 from sceHttp2WaitAsync.

Evidence

The argument and timeout contract comes from the decrypted firmware 11.00 libSceHttp2.sprx: sceHttp2SendRequestAsync at 0x1940/internal 0x4a60, sceHttp2ReadDataAsync at 0x1b20/0x4e20 and sceHttp2WaitAsync at 0x1c20/0x9a00. The wait forwards the caller's pointer to sceKernelWaitSema(sema, 1, timeout) (0x4790) and remaps the kernel timeout 0x8002003c to 0x817b1079 (0x9a79); the result and trailing-argument checks are at 0x1d21, 0x1cca and 0x1cd3, and the completion kind at +0x1600 selects event_type through the table at 0x271d0. Because the 11.00 submission bodies reject a non-null trailing pointer with 0x817b11fe while PPSA22408 passes one, the trailing pointer stays ignored and the debt entry records the version split.

Tested

Linux (CachyOS), GCC 16.2.1. guest_http2 submits an asynchronous request whose body length does not match the declared content length, then checks the user event payload and that sceHttp2WaitAsync rethrows the worker's exception. guest_http2_transport drives 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 pins 0x817b1079, 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_transport and guest_http2_early_response pass in the Release build.

Title: PPSA02195 polls sceHttp2WaitAsync with *timeout == 0 and 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

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #11611 (textual conflicts only: #11586, #11617 and #11575 land first, then #11611, then this PR; measured with git merge-tree on the current heads)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5026469895 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630). Originally posted by [edubox](https://github.com/edubox) on 2026-10-26T23:59:59Z. --- ### What `sceHttp2SendRequestAsync`, `sceHttp2ReadDataAsync` and `sceHttp2WaitAsync` threw. This completes them over the existing transport: - `sceHttp2SendRequestAsync` copies the body, runs `Send` on a worker and queues an `Http2AsyncResult` whose `result` is 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). - `sceHttp2ReadDataAsync` does the same for `Read` and reports the bytes read in `result`. - `sceHttp2WaitAsync` waits for the oldest completion. A null `timeout` waits indefinitely; `*timeout == 0` throws 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 `*timeout` is a microsecond deadline that returns `0x817b1079` when it expires, which is the 11.00 mapping of the kernel's `0x8002003c`. A null `result` returns `0x817b1225` and a non-null trailing argument or a non-zero `reserved` field of the result returns `0x817b11fe`. 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_type` is 0 for send and 1 for read, confirmed by the 11.00 completion kinds (`+0x1600` pairs mapped at `0x9a4f`). `*timeout` receives 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 from `sceHttp2WaitAsync`. ### Evidence The argument and timeout contract comes from the decrypted firmware 11.00 `libSceHttp2.sprx`: `sceHttp2SendRequestAsync` at `0x1940`/internal `0x4a60`, `sceHttp2ReadDataAsync` at `0x1b20`/`0x4e20` and `sceHttp2WaitAsync` at `0x1c20`/`0x9a00`. The wait forwards the caller's pointer to `sceKernelWaitSema(sema, 1, timeout)` (`0x4790`) and remaps the kernel timeout `0x8002003c` to `0x817b1079` (`0x9a79`); the result and trailing-argument checks are at `0x1d21`, `0x1cca` and `0x1cd3`, and the completion kind at `+0x1600` selects `event_type` through the table at `0x271d0`. Because the 11.00 submission bodies reject a non-null trailing pointer with `0x817b11fe` while PPSA22408 passes one, the trailing pointer stays ignored and the debt entry records the version split. ### Tested Linux (CachyOS), GCC 16.2.1. `guest_http2` submits an asynchronous request whose body length does not match the declared content length, then checks the user event payload and that `sceHttp2WaitAsync` rethrows the worker's exception. `guest_http2_transport` drives 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 pins `0x817b1079`, 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_transport` and `guest_http2_early_response` pass in the Release build. Title: PPSA02195 polls `sceHttp2WaitAsync` with `*timeout == 0` and 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 <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #11611 (textual conflicts only: #11586, #11617 and #11575 land first, then #11611, then this PR; measured with `git merge-tree` on the current heads) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-27 00:01:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T00:01:16Z.

Review: CHANGES_REQUESTED


Reviewed exact head b42c09562c218caa6e999205e43a6c08274b7ced. I found a blocking lifetime race in the async completion queue.

[P1] sceHttp2WaitAsync must not retain a deque reference across the condition-variable wait when deletion can erase it. At Export.cpp:349-350, queue refers directly to the mapped deque and the wait releases g_completionsMutex. sceHttp2DeleteRequest can then erase that entry at lines 163-164. A detached operation may subsequently run CompleteAsync, recreate the map entry, and notify; the waiter wakes and evaluates available against the destroyed deque reference (or accesses it at queue.front()), which is a use-after-free. A finite timeout can also wake it after deletion. Separately, the worker can publish a new completion after deletion, so erasing the existing queue does not actually drop pending completions as the PR description says.

Please make request deletion, in-flight operations, and waiters share a stable per-request completion state (including a defined cancelled/deleted wake result), and ensure no completion can be enqueued after that state is retired. Add a regression that blocks a waiter, deletes the request while an operation is still in flight, then releases/completes the operation and verifies there is no hang, stale completion, or invalid access; run it under ASan/TSan where available.

I have not run this PR's tests locally yet; existing PR checks are policy-only for these changed paths and skip product builds. This request is based on the lock and lifetime interleaving above, not on an unrun test claim.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5660686698 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5660686698). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T00:01:16Z. **Review:** CHANGES_REQUESTED --- Reviewed exact head `b42c09562c218caa6e999205e43a6c08274b7ced`. I found a blocking lifetime race in the async completion queue. **[P1] `sceHttp2WaitAsync` must not retain a deque reference across the condition-variable wait when deletion can erase it.** At `Export.cpp:349-350`, `queue` refers directly to the mapped deque and the wait releases `g_completionsMutex`. `sceHttp2DeleteRequest` can then erase that entry at lines 163-164. A detached operation may subsequently run `CompleteAsync`, recreate the map entry, and notify; the waiter wakes and evaluates `available` against the destroyed deque reference (or accesses it at `queue.front()`), which is a use-after-free. A finite timeout can also wake it after deletion. Separately, the worker can publish a new completion after deletion, so erasing the existing queue does not actually drop pending completions as the PR description says. Please make request deletion, in-flight operations, and waiters share a stable per-request completion state (including a defined cancelled/deleted wake result), and ensure no completion can be enqueued after that state is retired. Add a regression that blocks a waiter, deletes the request while an operation is still in flight, then releases/completes the operation and verifies there is no hang, stale completion, or invalid access; run it under ASan/TSan where available. I have not run this PR's tests locally yet; existing PR checks are policy-only for these changed paths and skip product builds. This request is based on the lock and lifetime interleaving above, not on an unrun test claim.
MarcZX10 commented 2026-10-27 01:28:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T01:28:06Z.

Review: CHANGES_REQUESTED


Reviewed current head 2ca67c36eb082641d502227da49d08ca193c9c6b. The completion-lifetime and exception-propagation changes address my earlier request, but the guest_http2 fixture still expects sceHttp2WaitAsync to return a numeric result for a request created by sceHttp2Init(1, 1, ...) without initializing an SSL context. Transport.cpp requires a usable SSL context and throws sceHttp2: SSL context or connection unavailable; the worker now correctly carries that exception to WaitAsync, so this fixture aborts rather than receiving the expected completion. An independent Linux run on this exact head reports the same failure. Please update this case to assert exception delivery, or provide a valid SSL context if a numeric completion is intended.

I built guest_http2_tests locally. ctest -R '^guest_http2$' aborts before reaching the assertion because this Xeon E5-1620 v2 lacks required CPU extensions; this is not a local reproduction of the fixture failure. git diff --check passes. Local conventions report the existing 1200-character debt entry length warning; hosted conventions passed on this head. Product build jobs are skipped by path policy.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5661208640 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5661208640). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T01:28:06Z. **Review:** CHANGES_REQUESTED --- Reviewed current head `2ca67c36eb082641d502227da49d08ca193c9c6b`. The completion-lifetime and exception-propagation changes address my earlier request, but the `guest_http2` fixture still expects `sceHttp2WaitAsync` to return a numeric result for a request created by `sceHttp2Init(1, 1, ...)` without initializing an SSL context. `Transport.cpp` requires a usable SSL context and throws `sceHttp2: SSL context or connection unavailable`; the worker now correctly carries that exception to `WaitAsync`, so this fixture aborts rather than receiving the expected completion. An independent Linux run on this exact head reports the same failure. Please update this case to assert exception delivery, or provide a valid SSL context if a numeric completion is intended. I built `guest_http2_tests` locally. `ctest -R '^guest_http2$'` aborts before reaching the assertion because this Xeon E5-1620 v2 lacks required CPU extensions; this is not a local reproduction of the fixture failure. `git diff --check` passes. Local conventions report the existing 1200-character debt entry length warning; hosted conventions passed on this head. Product build jobs are skipped by path policy.
MarcZX10 commented 2026-10-27 02:10:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T02:10:45Z.

Review: CHANGES_REQUESTED


Reviewed exact head 1e42382d8bcf4e1d1612395577bc5f78b5fd21e5. The updated guest_http2 case now uses the transport's declared-length check to exercise exception delivery, and changing AsyncFailure to Mode::Reset removes its dependence on redirect support. Those address the prior fixture findings.

[P1] Serialize event delivery with request retirement. CompleteAsync checks state->retired and enqueues the completion while holding state->mutex, then releases the lock at line 69 and triggers the user event at line 71. sceHttp2DeleteRequest can retire and erase the request in that gap. The worker then triggers an event after deletion even though the debt entry says later completions are dropped without triggering one. Please make retirement and event delivery mutually ordered (and add a regression for deletion after enqueue but before trigger); the existing stalled-worker deletion test only covers completion arriving after retirement.

[P2] Coordinate the overlapping test/debt edits. The current merge-base check against open #11575, #11586, #11611, and #11617 reports content conflicts in GuestHttp2Transport.cpp (and, for the first three, docs/dev/debt/libSceHttp2.md). CONTRIBUTING.md says to agree with overlapping PR authors on order and declare a prerequisite with Depends on when needed. Please coordinate the order and update the checklist/debt text so the combined landing is explicit. The pair with #11616 merges cleanly.

The updated convention and label checks pass, and the report check passed. The product build jobs are skipped by path policy; I have not independently rerun the reported Release/ASan/TSan tests on this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5661450523 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5661450523). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T02:10:45Z. **Review:** CHANGES_REQUESTED --- Reviewed exact head `1e42382d8bcf4e1d1612395577bc5f78b5fd21e5`. The updated `guest_http2` case now uses the transport's declared-length check to exercise exception delivery, and changing `AsyncFailure` to `Mode::Reset` removes its dependence on redirect support. Those address the prior fixture findings. **[P1] Serialize event delivery with request retirement.** `CompleteAsync` checks `state->retired` and enqueues the completion while holding `state->mutex`, then releases the lock at line 69 and triggers the user event at line 71. `sceHttp2DeleteRequest` can retire and erase the request in that gap. The worker then triggers an event after deletion even though the debt entry says later completions are dropped without triggering one. Please make retirement and event delivery mutually ordered (and add a regression for deletion after enqueue but before trigger); the existing stalled-worker deletion test only covers completion arriving after retirement. **[P2] Coordinate the overlapping test/debt edits.** The current merge-base check against open #11575, #11586, #11611, and #11617 reports content conflicts in `GuestHttp2Transport.cpp` (and, for the first three, `docs/dev/debt/libSceHttp2.md`). CONTRIBUTING.md says to agree with overlapping PR authors on order and declare a prerequisite with `Depends on` when needed. Please coordinate the order and update the checklist/debt text so the combined landing is explicit. The pair with #11616 merges cleanly. The updated convention and label checks pass, and the report check passed. The product build jobs are skipped by path policy; I have not independently rerun the reported Release/ASan/TSan tests on this head.
MarcZX10 commented 2026-10-29 09:09:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:09:42Z.

Review: CHANGES_REQUESTED


Re-check — changes requested\n\nThe exact current head now fixes the earlier event-after-delete race: CompleteAsync holds the per-request state mutex through event triggering, RetireAsync takes the same mutex, and AsyncDeletePublished pauses after queue publication to verify deletion cannot return before delivery. This resolves my prior P1 finding.\n\nTwo remaining items:\n\n1. The checklist says Depends on: none while its explanation says #11586, #11617 and #11575 must land before #11611, and #11611 before this PR. CONTRIBUTING requires an explicit prerequisite when another open PR must land first. Please confirm the order with those authors and set Depends on #11611 (or revise the sequence and reciprocal checklists if these changes can land independently).\n2. The Windows report explains the observed async-send test timeout: localhost resolves to IPv6 first while the test server listens only on 127.0.0.1, and refusal can consume more than the test's 2-second wait. That plausibly explains the local failure without indicating a production defect, but it leaves a platform-sensitive test failure. Please make the fixture avoid the slow address-refusal path (or otherwise demonstrate the Windows test is stable) and report the focused Windows result.\n\nThe report's Linux focused tests are author-reported; I did not run tests locally. Hosted policy checks are still pending, and the automatic workflow does not run the full product tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5695255362 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5695255362). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T09:09:42Z. **Review:** CHANGES_REQUESTED --- ## Re-check — changes requested\n\nThe exact current head now fixes the earlier event-after-delete race: CompleteAsync holds the per-request state mutex through event triggering, RetireAsync takes the same mutex, and AsyncDeletePublished pauses after queue publication to verify deletion cannot return before delivery. This resolves my prior P1 finding.\n\nTwo remaining items:\n\n1. The checklist says Depends on: none while its explanation says #11586, #11617 and #11575 must land before #11611, and #11611 before this PR. CONTRIBUTING requires an explicit prerequisite when another open PR must land first. Please confirm the order with those authors and set Depends on #11611 (or revise the sequence and reciprocal checklists if these changes can land independently).\n2. The Windows report explains the observed async-send test timeout: localhost resolves to IPv6 first while the test server listens only on 127.0.0.1, and refusal can consume more than the test's 2-second wait. That plausibly explains the local failure without indicating a production defect, but it leaves a platform-sensitive test failure. Please make the fixture avoid the slow address-refusal path (or otherwise demonstrate the Windows test is stable) and report the focused Windows result.\n\nThe report's Linux focused tests are author-reported; I did not run tests locally. Hosted policy checks are still pending, and the automatic workflow does not run the full product tests.
XairRrR commented 2026-10-29 10:19:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T10:19:49Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The asynchronous send, read and completion lifecycle builds and its tests pass, but sceHttp2WaitAsync makes *timeout == 0 block because of one title, while the firmware path the PR cites (and the in-tree sceKernelWaitSema) returns a timeout at once.

What I ran

  • Head: bbfeca05579945eaa26042b8b366a1ec4fe9d333
  • main: 1b580f13cf7e3bcab980dbb41623eb78fa8eefeb
  • Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08); Release, Ninja, BUILD_TESTING=ON, in a clean worktree.
git fetch -q origin main pull/11630/head:refs/review/11630
git checkout -q --detach origin/main
git merge -q --no-ff --no-edit refs/review/11630
git diff --check origin/main...refs/review/11630
python3 tools/check_conventions.py --base origin/main
cmake --build build -j10
cmake --build build -j10 --target libs
ctest --test-dir build -R '^guest_http2' -j4 --output-on-failure
ctest --test-dir build -R '^guest_http2' -j4 --repeat until-fail:3 --output-on-failure
# negative control
git checkout origin/main -- core/libs/prx/libSceHttp2/Export.cpp core/libs/prx/libSceHttp2/include/Http2.hpp
cmake --build build -j10 --target guest_http2_tests guest_http2_transport_tests
ctest --test-dir build -R '^guest_http2$' --output-on-failure
git checkout HEAD -- core/libs/prx/libSceHttp2/Export.cpp core/libs/prx/libSceHttp2/include/Http2.hpp
# temporary probe in GuestSemaphore.cpp (reverted afterwards): sceKernelWaitSema(sem, 1, &zero) with zero = 0 on an empty semaphore
cmake --build build -j10 --target guest_semaphore_tests
ctest --test-dir build -R '^guest_semaphore$' -V

Results

Check Result
Merge into main Clean
git diff --check Clean
check_conventions.py --base origin/main All conventions checks passed.
Full build and libs OK
guest_http2* (7 tests) 7/7 pass; guest_http2_transport 9.91 s
guest_http2* repeated 3 times 21/21 pass
In-tree sceKernelWaitSema with *time == 0 on an empty semaphore 0x8002003c after 1 µs
Focused tests
1/7 Test #1982: guest_http2_teardown .............   Passed    0.01 sec
2/7 Test #1978: guest_http2_options ..............   Passed    0.00 sec
3/7 Test #1977: guest_http2_cookies ..............   Passed    0.00 sec
4/7 Test #1976: guest_http2 ......................   Passed    0.00 sec
5/7 Test #1981: guest_http2_system_roots .........   Passed    0.17 sec
6/7 Test #1980: guest_http2_early_response .......   Passed    0.68 sec
7/7 Test #1979: guest_http2_transport ............   Passed    9.91 sec
100% tests passed out of 7
Semaphore probe
PROBE zero-timeout result=0x8002003c elapsed_us=1

Negative control

I restored Export.cpp and Http2.hpp from main and kept the new tests:

  • guest_http2 fails: terminate called after throwing an instance of 'std::runtime_error' what(): sceHttp2SendRequestAsync not implemented (Subprocess aborted).
  • guest_http2_transport no longer compiles: GuestHttp2Transport.cpp:612:5: error: « GuestSceHttp2Test » n'a pas été déclaré ("has not been declared"), because the test hook lives in the production header.

I restored the merged files afterwards.

Findings

Blocking

  1. A zero wait timeout blocks only because of PPSA02195, against the cited firmware path. At Export.cpp:429-433, a nonzero *timeout gets a timed wait and every other case calls wait(). The PR's own evidence says the 11.00 body passes the caller's pointer to sceKernelWaitSema(sema, 1, timeout) and maps 0x8002003c to 0x817b1079. The in-tree sceKernelWaitSema treats a zero *time as a deadline of now (Semaphore.cpp:125-127). My probe measured 0x8002003c after 1 µs. So the library composed from the PR's own sources returns 0x817b1079 at once for a zero timeout.

    The debt entry gives one title's behaviour as the only reason to block. CONTRIBUTING says to implement the general behaviour, not what one title needs. AGENTS.md says to throw and record a gap when the general behaviour is unknown.

    The title evidence also does not separate the two hypotheses:

    • Before b32de8a741, an unmet wait called NotImplemented_nid_no_patch, so an immediate abort there was a throw, not a timeout code.
    • b32de8a741 added blocking together with the unsourced 0x817B1068.
    • The polling version with 0x817b1079 (e44e532dac) was replaced 34 s after it was committed.

    PPSA02195 may well retry on 0x817b1079 and only have aborted on the earlier codes.

    GuestHttp2Transport.cpp:497-502 then pins the blocking behaviour as correct.

    Suggested fix: restore the e44e532dac behaviour (a zero timeout polls and returns 0x817b1079) and drop the "zero blocks" assertion. If you keep blocking, post a PPSA02195 log from a build where zero polls with 0x817b1079, showing the title abort on that code.

  2. *timeout is recorded as "not updated, unverified", but the cited path updates it. The same entry says the remaining time is not written back. e44e532dac stated that *timeout receives the remaining microseconds, and that follows from forwarding the pointer: Semaphore.cpp:127 writes the remainder through it. bbfeca0557 removed the write-back with no new evidence. Please write the remaining microseconds back as e44e532dac did, or give the reason for the change.

Non-blocking

  1. A worker exception is lost when the guest never calls sceHttp2WaitAsync. CompleteAsync (Export.cpp:66-82) stores the exception and still triggers the user event. A title that reacts to the event and then calls sceHttp2GetStatusCode or sceHttp2DeleteRequest never sees the NotImplemented from the transport; the request just looks complete. That includes a second submission while one is in flight, which fails in the worker at Transport.cpp:536-538. Consider rethrowing a pending failure from the next synchronous call on that request, or from DeleteRequest, so an unimplemented path cannot pass silently.
  2. Duplicate include. GuestHttp2Transport.cpp:11-14 includes prx/libkernel/include/Api.hpp twice; the added line 14 can go.
  3. Depends on line. I agree with MarcZX10's open item that Depends on: none conflicts with the landing order in its own explanation. I have no new evidence on it.

Not verified

  • Windows. The earlier IPv6-loopback timeout was reported fixed by others on older heads; I did not run Windows.
  • Console behaviour of sceKernelWaitSema with a zero timeout; I only measured the in-tree implementation.
  • The firmware 11.00 offsets in the description; I have no dump.
  • Any title run, including PPSA02195. ASan and TSan were not run.

To get this to a good state

  1. Make *timeout == 0 follow the cited sceKernelWaitSema path (immediate 0x817b1079), or show the PPSA02195 abort with that code.
  2. Write the remaining time back to *timeout, or document why not.
  3. Update the debt entry and the AsyncBlockingWait test to match.
  4. Settle Depends on as already requested.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5696125048 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5696125048). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T10:19:49Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The asynchronous send, read and completion lifecycle builds and its tests pass, but `sceHttp2WaitAsync` makes `*timeout == 0` block because of one title, while the firmware path the PR cites (and the in-tree `sceKernelWaitSema`) returns a timeout at once. ## What I ran - Head: `bbfeca05579945eaa26042b8b366a1ec4fe9d333` - `main`: `1b580f13cf7e3bcab980dbb41623eb78fa8eefeb` - Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08); Release, Ninja, `BUILD_TESTING=ON`, in a clean worktree. ```sh git fetch -q origin main pull/11630/head:refs/review/11630 git checkout -q --detach origin/main git merge -q --no-ff --no-edit refs/review/11630 git diff --check origin/main...refs/review/11630 python3 tools/check_conventions.py --base origin/main cmake --build build -j10 cmake --build build -j10 --target libs ctest --test-dir build -R '^guest_http2' -j4 --output-on-failure ctest --test-dir build -R '^guest_http2' -j4 --repeat until-fail:3 --output-on-failure # negative control git checkout origin/main -- core/libs/prx/libSceHttp2/Export.cpp core/libs/prx/libSceHttp2/include/Http2.hpp cmake --build build -j10 --target guest_http2_tests guest_http2_transport_tests ctest --test-dir build -R '^guest_http2$' --output-on-failure git checkout HEAD -- core/libs/prx/libSceHttp2/Export.cpp core/libs/prx/libSceHttp2/include/Http2.hpp # temporary probe in GuestSemaphore.cpp (reverted afterwards): sceKernelWaitSema(sem, 1, &zero) with zero = 0 on an empty semaphore cmake --build build -j10 --target guest_semaphore_tests ctest --test-dir build -R '^guest_semaphore$' -V ``` ## Results | Check | Result | |---|---| | Merge into `main` | Clean | | `git diff --check` | Clean | | `check_conventions.py --base origin/main` | `All conventions checks passed.` | | Full build and `libs` | OK | | `guest_http2*` (7 tests) | 7/7 pass; `guest_http2_transport` 9.91 s | | `guest_http2*` repeated 3 times | 21/21 pass | | In-tree `sceKernelWaitSema` with `*time == 0` on an empty semaphore | `0x8002003c` after 1 µs | <details><summary>Focused tests</summary> ``` 1/7 Test #1982: guest_http2_teardown ............. Passed 0.01 sec 2/7 Test #1978: guest_http2_options .............. Passed 0.00 sec 3/7 Test #1977: guest_http2_cookies .............. Passed 0.00 sec 4/7 Test #1976: guest_http2 ...................... Passed 0.00 sec 5/7 Test #1981: guest_http2_system_roots ......... Passed 0.17 sec 6/7 Test #1980: guest_http2_early_response ....... Passed 0.68 sec 7/7 Test #1979: guest_http2_transport ............ Passed 9.91 sec 100% tests passed out of 7 ``` </details> <details><summary>Semaphore probe</summary> ``` PROBE zero-timeout result=0x8002003c elapsed_us=1 ``` </details> ## Negative control I restored `Export.cpp` and `Http2.hpp` from `main` and kept the new tests: - `guest_http2` fails: `terminate called after throwing an instance of 'std::runtime_error' what(): sceHttp2SendRequestAsync not implemented` (Subprocess aborted). - `guest_http2_transport` no longer compiles: `GuestHttp2Transport.cpp:612:5: error: « GuestSceHttp2Test » n'a pas été déclaré` ("has not been declared"), because the test hook lives in the production header. I restored the merged files afterwards. ## Findings ### Blocking 1. **A zero wait timeout blocks only because of PPSA02195, against the cited firmware path.** At [`Export.cpp:429-433`](https://github.com/boykopovar/AnyPS5/blob/bbfeca05579945eaa26042b8b366a1ec4fe9d333/core/libs/prx/libSceHttp2/Export.cpp#L429-L433), a nonzero `*timeout` gets a timed wait and every other case calls `wait()`. The PR's own evidence says the 11.00 body passes the caller's pointer to `sceKernelWaitSema(sema, 1, timeout)` and maps `0x8002003c` to `0x817b1079`. The in-tree `sceKernelWaitSema` treats a zero `*time` as a deadline of now ([`Semaphore.cpp:125-127`](https://github.com/boykopovar/AnyPS5/blob/bbfeca05579945eaa26042b8b366a1ec4fe9d333/core/libs/prx/libkernel/Semaphore/src/Semaphore.cpp#L125-L127)). My probe measured `0x8002003c` after 1 µs. So the library composed from the PR's own sources returns `0x817b1079` at once for a zero timeout. The [debt entry](https://github.com/boykopovar/AnyPS5/blob/bbfeca05579945eaa26042b8b366a1ec4fe9d333/docs/dev/debt/libSceHttp2.md#L43) gives one title's behaviour as the only reason to block. CONTRIBUTING says to implement the general behaviour, not what one title needs. AGENTS.md says to throw and record a gap when the general behaviour is unknown. The title evidence also does not separate the two hypotheses: - Before [`b32de8a741`](https://github.com/boykopovar/AnyPS5/commit/b32de8a741ca7adcafd16538b4f68744b2d8cc4e), an unmet wait called `NotImplemented_nid_no_patch`, so an immediate abort there was a throw, not a timeout code. - `b32de8a741` added blocking together with the unsourced `0x817B1068`. - The polling version with `0x817b1079` ([`e44e532dac`](https://github.com/boykopovar/AnyPS5/commit/e44e532dac0969ff999936052c8c508a547817ee)) was replaced 34 s after it was committed. PPSA02195 may well retry on `0x817b1079` and only have aborted on the earlier codes. [`GuestHttp2Transport.cpp:497-502`](https://github.com/boykopovar/AnyPS5/blob/bbfeca05579945eaa26042b8b366a1ec4fe9d333/core/libs/tests/GuestHttp2Transport.cpp#L497-L502) then pins the blocking behaviour as correct. Suggested fix: restore the `e44e532dac` behaviour (a zero timeout polls and returns `0x817b1079`) and drop the "zero blocks" assertion. If you keep blocking, post a PPSA02195 log from a build where zero polls with `0x817b1079`, showing the title abort on that code. 2. **`*timeout` is recorded as "not updated, unverified", but the cited path updates it.** The same entry says the remaining time is not written back. `e44e532dac` stated that `*timeout` receives the remaining microseconds, and that follows from forwarding the pointer: `Semaphore.cpp:127` writes the remainder through it. `bbfeca0557` removed the write-back with no new evidence. Please write the remaining microseconds back as `e44e532dac` did, or give the reason for the change. ### Non-blocking 1. **A worker exception is lost when the guest never calls `sceHttp2WaitAsync`.** `CompleteAsync` ([`Export.cpp:66-82`](https://github.com/boykopovar/AnyPS5/blob/bbfeca05579945eaa26042b8b366a1ec4fe9d333/core/libs/prx/libSceHttp2/Export.cpp#L66-L82)) stores the exception and still triggers the user event. A title that reacts to the event and then calls `sceHttp2GetStatusCode` or `sceHttp2DeleteRequest` never sees the `NotImplemented` from the transport; the request just looks complete. That includes a second submission while one is in flight, which fails in the worker at [`Transport.cpp:536-538`](https://github.com/boykopovar/AnyPS5/blob/bbfeca05579945eaa26042b8b366a1ec4fe9d333/core/libs/prx/libSceHttp2/Transport.cpp#L536-L538). Consider rethrowing a pending failure from the next synchronous call on that request, or from `DeleteRequest`, so an unimplemented path cannot pass silently. 2. **Duplicate include.** [`GuestHttp2Transport.cpp:11-14`](https://github.com/boykopovar/AnyPS5/blob/bbfeca05579945eaa26042b8b366a1ec4fe9d333/core/libs/tests/GuestHttp2Transport.cpp#L11-L14) includes `prx/libkernel/include/Api.hpp` twice; the added line 14 can go. 3. **Depends on line.** I agree with [MarcZX10's open item](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5695255362) that `Depends on: none` conflicts with the landing order in its own explanation. I have no new evidence on it. ## Not verified - Windows. The earlier IPv6-loopback timeout was reported fixed by others on older heads; I did not run Windows. - Console behaviour of `sceKernelWaitSema` with a zero timeout; I only measured the in-tree implementation. - The firmware 11.00 offsets in the description; I have no dump. - Any title run, including PPSA02195. ASan and TSan were not run. ## To get this to a good state 1. Make `*timeout == 0` follow the cited `sceKernelWaitSema` path (immediate `0x817b1079`), or show the PPSA02195 abort with that code. 2. Write the remaining time back to `*timeout`, or document why not. 3. Update the debt entry and the `AsyncBlockingWait` test to match. 4. Settle `Depends on` as already requested.
XairRrR commented 2026-10-29 12:19:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T12:19:43Z.

Review: CHANGES_REQUESTED


Re-checked — changes still requested

sceHttp2WaitAsync now writes the remaining microseconds back to *timeout, the duplicate include is gone and Depends on names #11611. But *timeout == 0 still blocks only because of PPSA02195, and no new evidence has been posted for it.

What changed since my last review

  • The branch was rebased onto main 5454cd2e45, and one new commit was added: 2a97417f63 fix(http2): report the remaining async wait timeout. Apart from the rebase, the diff against bbfeca0557 has three parts:
    • The nonzero-timeout branch of sceHttp2WaitAsync uses a steady_clock deadline and writes the remaining time back.
    • AsyncBlockingWait checks that an expired wait sets shortTimeout to 0.
    • The duplicate Api.hpp include is removed.
  • The debt entry now says that *timeout receives the remaining time. It also mentions the in-tree sceKernelWaitSema zero-timeout result next to the PPSA02195 claim.
  • The description's checklist now says Depends on: #11611. The author's reply of 2026-10-29 12:11 keeps zero-timeout blocking. It says they did not get a log from a build where a zero timeout polls and returns 0x817b1079.

What I ran

  • Head: 2a97417f635a7fe55dd84f13cac889291f4c28d2
  • main: 5454cd2e455994d992aca39335ce60507eeda1eb
  • Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08); Release, Ninja, BUILD_TESTING=ON, in a clean worktree.
git fetch -q origin main pull/11630/head:refs/review/11630
git checkout -q --detach origin/main
git merge -q --no-ff --no-edit refs/review/11630
git diff --check origin/main...refs/review/11630
python3 tools/check_conventions.py --base origin/main
cmake --build build -j10 --target guest_http2_tests guest_http2_transport_tests
cmake --build build -j10 --target libs
ctest --test-dir build -R '^guest_http2' -j4 --output-on-failure
ctest --test-dir build -R '^guest_http2' -j4 --repeat until-fail:3
# negative control for the new assertion: previous head's Export.cpp (no write-back)
git checkout bbfeca05579945eaa26042b8b366a1ec4fe9d333 -- core/libs/prx/libSceHttp2/Export.cpp
cmake --build build -j10 --target guest_http2_transport_tests
ctest --test-dir build -R '^guest_http2_transport$' --output-on-failure
git checkout HEAD -- core/libs/prx/libSceHttp2/Export.cpp
Check Result
Merge into main Clean
git diff --check Clean
check_conventions.py 0 errors, 1 warning (debt-length, see below)
libs and the http2 test targets Build OK
guest_http2* (7 tests) 7/7 pass; guest_http2_transport 10.16 s
guest_http2* repeated 3 times 21/21 pass
Negative control (no write-back) guest_http2_transport fails at expired wait clears the timeout
Negative control output
HTTP2 async blocking wait scenario
HTTP2: expired wait clears the timeout
0% tests passed, 1 tests failed out of 1
	1985 - guest_http2_transport (Subprocess aborted)

Previous findings

  1. Blocking: a zero timeout blocks because of PPSA02195. Still open. Export.cpp:429-437 still sends *timeout == 0 to the untimed wait(), and GuestHttp2Transport.cpp:497-502 still pins that behaviour.
    • The reply confirms that no log has been posted showing PPSA02195 abort on 0x817b1079. As noted last time, the history only supports an abort under the earlier throwing path, before 0x817b1079 was returned.
    • The new debt text says "PPSA02195 aborts on that immediate timeout". That is stated as fact, but there is no evidence for it.
    • The general path the PR cites is the caller's pointer forwarded to sceKernelWaitSema. In-tree, that call returns a timeout at once for zero (Semaphore.cpp:125-127). The new write-back follows that same call for nonzero values, so zero is now the only input where the PR departs from it.
    • "The title needs it" is not a reason CONTRIBUTING accepts. The two acceptable options are: follow the cited path (poll and return 0x817b1079), or, if the behaviour is really unknown, throw for *timeout == 0 and record it.
  2. Blocking: *timeout write-back. Resolved. Lines 430-433 compute a deadline, wait until it, and write back the remainder, or 0 once it has passed. This matches Semaphore.cpp:125-127. The new assertion at line 495 fails without the change (negative control above). The debt entry was updated.
  3. Non-blocking: a worker exception is lost when the guest never waits. Still open. The author defers it as a follow-up, which is fine because it is non-blocking. It would help to add it to the async debt entry.
  4. Non-blocking: duplicate include. Resolved; GuestHttp2Transport.cpp now includes Api.hpp once.
  5. Non-blocking: Depends on. Resolved in text: the checklist names #11611, which is open. The landing order is the author's own git merge-tree measurement; I did not re-measure it.

New findings

Blocking

None.

Non-blocking

  1. The debt entry is over the length limit. check_conventions.py warns: docs/dev/debt/libSceHttp2.md:43: warning: [debt-length] Technical debt entry over 1000 characters ... 1028 characters. Fixing finding 1 will rewrite this entry anyway, so it can be trimmed then.
  2. The deadline arithmetic could reuse TimedWait. Lines 430-433 reimplement TimedWait::DeadlineNanos / RemainingMicros (core/libs/prx/libkernel/Time/include/TimedWait.hpp:21-22), which sceKernelWaitSema uses. The two would then round the same way. This is optional.

Not verified

  • Windows. The localhost fixture change is the author's report and milescoviello's earlier focused run; I did not run Windows.
  • How sceKernelWaitSema behaves on a console with a zero timeout, and the firmware 11.00 offsets.
  • Any title run, including PPSA02195. ASan and TSan were not run. I did not run a full build of every target, only libs and the http2 test targets.

To get this to a good state

  1. Make *timeout == 0 return 0x817b1079 at once, as the cited sceKernelWaitSema path does, and change AsyncBlockingWait to match. Alternatively, throw for zero and record it as unknown. Or post a PPSA02195 log from a build where zero polls with 0x817b1079 that shows the title aborting on that code.
  2. Change the debt entry and the description so they do not claim the abort without that log, and keep the entry under 1000 characters.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5697570028 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5697570028). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T12:19:43Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes still requested `sceHttp2WaitAsync` now writes the remaining microseconds back to `*timeout`, the duplicate include is gone and `Depends on` names #11611. But `*timeout == 0` still blocks only because of PPSA02195, and no new evidence has been posted for it. ## What changed since my last review - The branch was rebased onto `main` `5454cd2e45`, and one new commit was added: `2a97417f63 fix(http2): report the remaining async wait timeout`. Apart from the rebase, the diff against `bbfeca0557` has three parts: - The nonzero-timeout branch of `sceHttp2WaitAsync` uses a `steady_clock` deadline and writes the remaining time back. - `AsyncBlockingWait` checks that an expired wait sets `shortTimeout` to 0. - The duplicate `Api.hpp` include is removed. - The debt entry now says that `*timeout` receives the remaining time. It also mentions the in-tree `sceKernelWaitSema` zero-timeout result next to the PPSA02195 claim. - The description's checklist now says `Depends on: #11611`. The author's reply of 2026-10-29 12:11 keeps zero-timeout blocking. It says they did not get a log from a build where a zero timeout polls and returns `0x817b1079`. ## What I ran - Head: `2a97417f635a7fe55dd84f13cac889291f4c28d2` - `main`: `5454cd2e455994d992aca39335ce60507eeda1eb` - Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08); Release, Ninja, `BUILD_TESTING=ON`, in a clean worktree. ```sh git fetch -q origin main pull/11630/head:refs/review/11630 git checkout -q --detach origin/main git merge -q --no-ff --no-edit refs/review/11630 git diff --check origin/main...refs/review/11630 python3 tools/check_conventions.py --base origin/main cmake --build build -j10 --target guest_http2_tests guest_http2_transport_tests cmake --build build -j10 --target libs ctest --test-dir build -R '^guest_http2' -j4 --output-on-failure ctest --test-dir build -R '^guest_http2' -j4 --repeat until-fail:3 # negative control for the new assertion: previous head's Export.cpp (no write-back) git checkout bbfeca05579945eaa26042b8b366a1ec4fe9d333 -- core/libs/prx/libSceHttp2/Export.cpp cmake --build build -j10 --target guest_http2_transport_tests ctest --test-dir build -R '^guest_http2_transport$' --output-on-failure git checkout HEAD -- core/libs/prx/libSceHttp2/Export.cpp ``` | Check | Result | |---|---| | Merge into `main` | Clean | | `git diff --check` | Clean | | `check_conventions.py` | 0 errors, 1 warning (`debt-length`, see below) | | `libs` and the http2 test targets | Build OK | | `guest_http2*` (7 tests) | 7/7 pass; `guest_http2_transport` 10.16 s | | `guest_http2*` repeated 3 times | 21/21 pass | | Negative control (no write-back) | `guest_http2_transport` fails at `expired wait clears the timeout` | <details><summary>Negative control output</summary> ``` HTTP2 async blocking wait scenario HTTP2: expired wait clears the timeout 0% tests passed, 1 tests failed out of 1 1985 - guest_http2_transport (Subprocess aborted) ``` </details> ## Previous findings 1. **Blocking: a zero timeout blocks because of PPSA02195.** Still open. [`Export.cpp:429-437`](https://github.com/boykopovar/AnyPS5/blob/2a97417f635a7fe55dd84f13cac889291f4c28d2/core/libs/prx/libSceHttp2/Export.cpp#L429-L437) still sends `*timeout == 0` to the untimed `wait()`, and [`GuestHttp2Transport.cpp:497-502`](https://github.com/boykopovar/AnyPS5/blob/2a97417f635a7fe55dd84f13cac889291f4c28d2/core/libs/tests/GuestHttp2Transport.cpp#L497-L502) still pins that behaviour. - The reply confirms that no log has been posted showing PPSA02195 abort on `0x817b1079`. As noted last time, the history only supports an abort under the earlier throwing path, before `0x817b1079` was returned. - The new [debt text](https://github.com/boykopovar/AnyPS5/blob/2a97417f635a7fe55dd84f13cac889291f4c28d2/docs/dev/debt/libSceHttp2.md#L43) says "PPSA02195 aborts on that immediate timeout". That is stated as fact, but there is no evidence for it. - The general path the PR cites is the caller's pointer forwarded to `sceKernelWaitSema`. In-tree, that call returns a timeout at once for zero ([`Semaphore.cpp:125-127`](https://github.com/boykopovar/AnyPS5/blob/5454cd2e455994d992aca39335ce60507eeda1eb/core/libs/prx/libkernel/Semaphore/src/Semaphore.cpp#L125-L127)). The new write-back follows that same call for nonzero values, so zero is now the only input where the PR departs from it. - "The title needs it" is not a reason CONTRIBUTING accepts. The two acceptable options are: follow the cited path (poll and return `0x817b1079`), or, if the behaviour is really unknown, throw for `*timeout == 0` and record it. 2. **Blocking: `*timeout` write-back.** Resolved. Lines 430-433 compute a deadline, wait until it, and write back the remainder, or 0 once it has passed. This matches `Semaphore.cpp:125-127`. The new assertion at line 495 fails without the change (negative control above). The debt entry was updated. 3. **Non-blocking: a worker exception is lost when the guest never waits.** Still open. The author defers it as a follow-up, which is fine because it is non-blocking. It would help to add it to the async debt entry. 4. **Non-blocking: duplicate include.** Resolved; `GuestHttp2Transport.cpp` now includes `Api.hpp` once. 5. **Non-blocking: `Depends on`.** Resolved in text: the checklist names #11611, which is open. The landing order is the author's own `git merge-tree` measurement; I did not re-measure it. ## New findings ### Blocking None. ### Non-blocking 1. **The debt entry is over the length limit.** `check_conventions.py` warns: `docs/dev/debt/libSceHttp2.md:43: warning: [debt-length] Technical debt entry over 1000 characters ... 1028 characters`. Fixing finding 1 will rewrite this entry anyway, so it can be trimmed then. 2. **The deadline arithmetic could reuse `TimedWait`.** Lines 430-433 reimplement `TimedWait::DeadlineNanos` / `RemainingMicros` (`core/libs/prx/libkernel/Time/include/TimedWait.hpp:21-22`), which `sceKernelWaitSema` uses. The two would then round the same way. This is optional. ## Not verified - Windows. The `localhost` fixture change is the author's report and milescoviello's earlier focused run; I did not run Windows. - How `sceKernelWaitSema` behaves on a console with a zero timeout, and the firmware 11.00 offsets. - Any title run, including PPSA02195. ASan and TSan were not run. I did not run a full build of every target, only `libs` and the http2 test targets. ## To get this to a good state 1. Make `*timeout == 0` return `0x817b1079` at once, as the cited `sceKernelWaitSema` path does, and change `AsyncBlockingWait` to match. Alternatively, throw for zero and record it as unknown. Or post a PPSA02195 log from a build where zero polls with `0x817b1079` that shows the title aborting on that code. 2. Change the debt entry and the description so they do not claim the abort without that log, and keep the entry under 1000 characters.
MarcZX10 commented 2026-10-29 20:13:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T20:13:29Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The rebase and focused-test report are current, but the exact head still makes a zero timeout wait indefinitely without evidence that this matches PS5 behavior.

What I ran

  • Exact head: a12b595d517fbdf48727ca079563c3e90c10acdc; base: fd9b3f62d43d6753d28a31a7c285e1f51e9c1b42.
  • Environment: Linux x86_64; GitHub CLI/API inspection only. I did not build or run the C++ tests locally.
  • Commands:
gh api 'repos/boykopovar/AnyPS5/contents/core/libs/prx/libSceHttp2/Export.cpp?ref=a12b595d517fbdf48727ca079563c3e90c10acdc' --jq .content | base64 -d | nl -ba | sed -n '417,444p'
gh api 'repos/boykopovar/AnyPS5/contents/core/libs/prx/libkernel/Semaphore/src/Semaphore.cpp?ref=fd9b3f62d43d6753d28a31a7c285e1f51e9c1b42' --jq .content | base64 -d | nl -ba | sed -n '125,127p'
gh pr checks 11630 --repo boykopovar/AnyPS5

Results

Check Result
Exact-head behavior Lines 429–437 branch around *timeout != 0; zero reaches an unbounded wait.
In-tree semaphore comparison sceKernelWaitSema builds a deadline from the supplied timeout and writes back the remaining time; the author’s previous focused probe reported zero returns 0x8002003c immediately.
Focused guest_http2* tests Author reports 7/7 pass on the rebased head; not independently run by me.
Hosted checks Windows, conventions, eligibility, labels and report pass; Linux product and specialized jobs were skipped.
Local build/tests Not run.
Unedited relevant output
   429	    if (timeout && *timeout != 0) {
   430	        const auto deadline = std::chrono::steady_clock::now() + std::chrono::microseconds(*timeout);
   431	        const bool ready = state->changed.wait_until(lock, deadline, available);
   432	        const auto remaining = std::chrono::duration_cast<std::chrono::microseconds>(deadline - std::chrono::steady_clock::now());
   433	        *timeout = remaining.count() > 0 ? static_cast<std::uint32_t>(remaining.count()) : 0;
   434	        if (!ready) return ERROR_TIMEOUT;
   435	    } else {
   436	        state->changed.wait(lock, available);
   437	    }
   125	 const std::uint64_t deadline = TimedWait::DeadlineNanos(*time);
   126	 const bool acquired = sem->condition.WaitUntil(lock, deadline, released);
   127	 *time = static_cast<KernelUseconds>(TimedWait::RemainingMicros(deadline));

Negative control

Assertion Change to code under test Did the new test fail?
A zero timeout is nonblocking or returns the guest timeout code No mutation run on this recheck. Not exercised by my local test run; the author’s focused suite result does not establish console behavior.

Findings

Blocking

*timeout == 0 reaches an unbounded condition-variable wait. The PR’s cited firmware path forwards the timeout pointer to sceKernelWaitSema, whose current in-tree implementation returns immediately for zero; the available PPSA02195 evidence shows a cancellation after a timeout but does not establish that an immediate 0x817b1079 result is unsafe. The behavior is therefore still unknown, while this change chooses blocking semantics. Please either follow the measured in-tree timeout behavior, throw and record the unknown behavior, or provide a console/title log showing PPSA02195 succeeds when zero returns 0x817b1079.

Non-blocking

The latest report says the Windows localhost fixture is fixed and focused tests pass. I did not independently run that suite. The worker-exception case remains a follow-up as the author states.

Sources

Not verified

I did not independently run the local build, focused tests, ASan/TSan, Windows tests, or a PS5 console/title run. The hosted workflow skipped Linux product and specialized jobs.

To get this to a good state

Resolve the zero-timeout behavior with measured evidence or keep it unimplemented as unknown behavior, update the test/debt/description consistently, and request re-review. I will recheck the same behavior and focused tests on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5704323479 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5704323479). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T20:13:29Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The rebase and focused-test report are current, but the exact head still makes a zero timeout wait indefinitely without evidence that this matches PS5 behavior. ## What I ran - Exact head: `a12b595d517fbdf48727ca079563c3e90c10acdc`; base: `fd9b3f62d43d6753d28a31a7c285e1f51e9c1b42`. - Environment: Linux x86_64; GitHub CLI/API inspection only. I did not build or run the C++ tests locally. - Commands: ```sh gh api 'repos/boykopovar/AnyPS5/contents/core/libs/prx/libSceHttp2/Export.cpp?ref=a12b595d517fbdf48727ca079563c3e90c10acdc' --jq .content | base64 -d | nl -ba | sed -n '417,444p' gh api 'repos/boykopovar/AnyPS5/contents/core/libs/prx/libkernel/Semaphore/src/Semaphore.cpp?ref=fd9b3f62d43d6753d28a31a7c285e1f51e9c1b42' --jq .content | base64 -d | nl -ba | sed -n '125,127p' gh pr checks 11630 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Exact-head behavior | Lines 429–437 branch around `*timeout != 0`; zero reaches an unbounded `wait`. | | In-tree semaphore comparison | `sceKernelWaitSema` builds a deadline from the supplied timeout and writes back the remaining time; the author’s previous focused probe reported zero returns `0x8002003c` immediately. | | Focused `guest_http2*` tests | Author reports 7/7 pass on the rebased head; not independently run by me. | | Hosted checks | Windows, conventions, eligibility, labels and report pass; Linux product and specialized jobs were skipped. | | Local build/tests | Not run. | <details> <summary>Unedited relevant output</summary> ```text 429 if (timeout && *timeout != 0) { 430 const auto deadline = std::chrono::steady_clock::now() + std::chrono::microseconds(*timeout); 431 const bool ready = state->changed.wait_until(lock, deadline, available); 432 const auto remaining = std::chrono::duration_cast<std::chrono::microseconds>(deadline - std::chrono::steady_clock::now()); 433 *timeout = remaining.count() > 0 ? static_cast<std::uint32_t>(remaining.count()) : 0; 434 if (!ready) return ERROR_TIMEOUT; 435 } else { 436 state->changed.wait(lock, available); 437 } 125 const std::uint64_t deadline = TimedWait::DeadlineNanos(*time); 126 const bool acquired = sem->condition.WaitUntil(lock, deadline, released); 127 *time = static_cast<KernelUseconds>(TimedWait::RemainingMicros(deadline)); ``` </details> ## Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | A zero timeout is nonblocking or returns the guest timeout code | No mutation run on this recheck. | Not exercised by my local test run; the author’s focused suite result does not establish console behavior. | ## Findings ### Blocking `*timeout == 0` reaches an unbounded condition-variable wait. The PR’s cited firmware path forwards the timeout pointer to `sceKernelWaitSema`, whose current in-tree implementation returns immediately for zero; the available PPSA02195 evidence shows a cancellation after a timeout but does not establish that an immediate `0x817b1079` result is unsafe. The behavior is therefore still unknown, while this change chooses blocking semantics. Please either follow the measured in-tree timeout behavior, throw and record the unknown behavior, or provide a console/title log showing PPSA02195 succeeds when zero returns `0x817b1079`. ### Non-blocking The latest report says the Windows localhost fixture is fixed and focused tests pass. I did not independently run that suite. The worker-exception case remains a follow-up as the author states. ## Sources - [PR implementation at `a12b595d517fbdf48727ca079563c3e90c10acdc`](https://github.com/boykopovar/AnyPS5/blob/a12b595d517fbdf48727ca079563c3e90c10acdc/core/libs/prx/libSceHttp2/Export.cpp#L417-L444) - [Current-main semaphore implementation at `fd9b3f62d43d6753d28a31a7c285e1f51e9c1b42`](https://github.com/boykopovar/AnyPS5/blob/fd9b3f62d43d6753d28a31a7c285e1f51e9c1b42/core/libs/prx/libkernel/Semaphore/src/Semaphore.cpp#L125-L127) - [Repository rule for unknown generic behavior at the same main commit](https://github.com/boykopovar/AnyPS5/blob/fd9b3f62d43d6753d28a31a7c285e1f51e9c1b42/AGENTS.md) ## Not verified I did not independently run the local build, focused tests, ASan/TSan, Windows tests, or a PS5 console/title run. The hosted workflow skipped Linux product and specialized jobs. ## To get this to a good state Resolve the zero-timeout behavior with measured evidence or keep it unimplemented as unknown behavior, update the test/debt/description consistently, and request re-review. I will recheck the same behavior and focused tests on the new head.
MarcZX10 commented 2026-10-29 21:24:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T21:24:04Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The rebase and focused-test report are useful, but the new firmware disassembly confirms that zero-timeout behavior is decided in the unavailable kernel and does not establish that zero blocks.

What I ran

Reviewed exact head 44ef307e0272a311ed4f04cf20c14cff60452f44 and live main c40cef843681418b4d66df2939a92ba8ba6ba5d9 on Linux x86-64 using Git and GitHub CLI. The merge preview is clean; the current head is based on 9624d8c6bb9e96b7aa92b815f55690f69b0a88d5. git diff --check passes. I did not build or run C++ tests locally.

git merge-tree --write-tree refs/remotes/upstream/main refs/review/pr-11630-head
git diff --check refs/remotes/upstream/main...refs/review/pr-11630-head
gh pr checks 11630 --repo boykopovar/AnyPS5

Results

Check Result
Merge preview with live main Clean; live main is not yet in this branch
git diff --check Passed; no output
Hosted checks Windows, conventions, labels, report and eligibility pass; Linux and specialized jobs are skipped
Focused guest_http2 tests Author reports 7/7 passing on exact head; not independently run here
Zero-timeout behavior Firmware wrapper forwards the pointer to sceKernelWaitSema; the dump does not include the kernel implementation, so it does not settle whether zero blocks
Unedited merge-preview output
ceb0b74d00392cce26b928825541da3748ba7a8c

Findings

Blocking

  • *timeout == 0 still selects an unbounded wait without evidence of the PS5 kernel behavior. The new disassembly shows sceKernelWaitSema receives the caller’s timeout pointer unchanged; it does not show what the encrypted kernel does with zero. The PPSA02195 observation and the author’s interpretation support the blocking choice but do not independently verify the console contract. Please provide a console measurement or other direct evidence for zero, or leave this case unimplemented and record it as unknown. Also update onto live main c40cef843681418b4d66df2939a92ba8ba6ba5d9; since 9624d8c6, main changed Export.cpp at the separate sceHttp2SetMinSslVersion implementation.

Non-blocking

  • The rebase, exact-head focused tests, conventions, and Windows check are reported as passing. The latest report clearly states the zero-timeout uncertainty and the limits of the firmware dump.

Sources

Not verified

I did not independently inspect the firmware binary, run the focused tests, build locally, or measure behavior on a PS5. The author’s disassembly and title observations are reported evidence, not reproduced here.

To get this to a good state

Update onto live main and resolve zero-timeout behavior with direct evidence or keep it unimplemented as unknown. I will recheck the exact new head and rerun the same relevant checks.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5705161828 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5705161828). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T21:24:04Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The rebase and focused-test report are useful, but the new firmware disassembly confirms that zero-timeout behavior is decided in the unavailable kernel and does not establish that zero blocks. ## What I ran Reviewed exact head `44ef307e0272a311ed4f04cf20c14cff60452f44` and live `main` `c40cef843681418b4d66df2939a92ba8ba6ba5d9` on Linux x86-64 using Git and GitHub CLI. The merge preview is clean; the current head is based on `9624d8c6bb9e96b7aa92b815f55690f69b0a88d5`. `git diff --check` passes. I did not build or run C++ tests locally. ```sh git merge-tree --write-tree refs/remotes/upstream/main refs/review/pr-11630-head git diff --check refs/remotes/upstream/main...refs/review/pr-11630-head gh pr checks 11630 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Merge preview with live `main` | Clean; live `main` is not yet in this branch | | `git diff --check` | Passed; no output | | Hosted checks | Windows, conventions, labels, report and eligibility pass; Linux and specialized jobs are skipped | | Focused `guest_http2` tests | Author reports 7/7 passing on exact head; not independently run here | | Zero-timeout behavior | Firmware wrapper forwards the pointer to `sceKernelWaitSema`; the dump does not include the kernel implementation, so it does not settle whether zero blocks | <details><summary>Unedited merge-preview output</summary> ```text ceb0b74d00392cce26b928825541da3748ba7a8c ``` </details> ## Findings ### Blocking - **`*timeout == 0` still selects an unbounded wait without evidence of the PS5 kernel behavior.** The new disassembly shows `sceKernelWaitSema` receives the caller’s timeout pointer unchanged; it does not show what the encrypted kernel does with zero. The PPSA02195 observation and the author’s interpretation support the blocking choice but do not independently verify the console contract. Please provide a console measurement or other direct evidence for zero, or leave this case unimplemented and record it as unknown. Also update onto live `main` `c40cef843681418b4d66df2939a92ba8ba6ba5d9`; since `9624d8c6`, `main` changed `Export.cpp` at the separate `sceHttp2SetMinSslVersion` implementation. ### Non-blocking - The rebase, exact-head focused tests, conventions, and Windows check are reported as passing. The latest report clearly states the zero-timeout uncertainty and the limits of the firmware dump. ## Sources - [Wait implementation at `44ef307e0272a311ed4f04cf20c14cff60452f44`](https://github.com/boykopovar/AnyPS5/blob/44ef307e0272a311ed4f04cf20c14cff60452f44/core/libs/prx/libSceHttp2/Export.cpp#L417-L443) - [Current-main change at `c40cef843681418b4d66df2939a92ba8ba6ba5d9`](https://github.com/boykopovar/AnyPS5/blob/c40cef843681418b4d66df2939a92ba8ba6ba5d9/core/libs/prx/libSceHttp2/Export.cpp#L312-L314) ## Not verified I did not independently inspect the firmware binary, run the focused tests, build locally, or measure behavior on a PS5. The author’s disassembly and title observations are reported evidence, not reproduced here. ## To get this to a good state Update onto live `main` and resolve zero-timeout behavior with direct evidence or keep it unimplemented as unknown. I will recheck the exact new head and rerun the same relevant checks.
MarcZX10 commented 2026-10-29 22:27:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T22:27:46Z.

Review: APPROVED


Re-checked — new head, looks good

The zero-timeout behavior is now explicitly left unimplemented and documented as unknown, resolving the prior request not to assume it blocks.

What I ran

  • Exact PR head: 5a7eef9671dad8caf78fd4dd2127f30c13f2778e; PR base: ebb4075168e9d96a2b3f177d9e6cda6900326e27; live main: 4c8cff191609bc5f28bf9ee2f93672b531285aa4.
  • Environment: Linux x86_64, Git 2.39.5, Python 3.11.2. No compiler or build was run locally.
  • Live-main merge preview is clean; none of the PR-touched paths changed on main since its base.
git merge-tree --write-tree upstream/main refs/review/pr-11630-current-20261029
git diff --check upstream/main...refs/review/pr-11630-current-20261029
python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-11630-current-20261029

Results

Check Result
Current-main merge preview Clean; tree b7e96091bc6b92eb7acba06a834b71961956d713
Diff check Passed; no output
Conventions Passed
Focused tests Author reports guest_http2 tests pass 7/7 on the exact head under Linux/GCC 16.2.1 Release. I did not run them locally.
Hosted CI Windows, conventions, labels, report and eligibility passed. Linux product and relinker/register-context/write-watch jobs were skipped by path policy.
Unedited local check output
b7e96091bc6b92eb7acba06a834b71961956d713
All conventions checks passed.

git diff --check produced no output and exited 0.

Findings

Blocking

None found in the updated scope.

Non-blocking

The zero-timeout case remains intentionally unsupported until console behavior is measured; the PR records that limitation in its debt entry. The PR also remains dependent on #11611 as declared in its checklist.

Sources

Not verified

I did not build or run the C++ tests locally. Linux product CI was skipped; the focused Linux test result is author-reported.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5705788142 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5705788142). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T22:27:46Z. **Review:** APPROVED --- # Re-checked — new head, looks good The zero-timeout behavior is now explicitly left unimplemented and documented as unknown, resolving the prior request not to assume it blocks. ## What I ran - Exact PR head: `5a7eef9671dad8caf78fd4dd2127f30c13f2778e`; PR base: `ebb4075168e9d96a2b3f177d9e6cda6900326e27`; live `main`: `4c8cff191609bc5f28bf9ee2f93672b531285aa4`. - Environment: Linux x86_64, Git 2.39.5, Python 3.11.2. No compiler or build was run locally. - Live-main merge preview is clean; none of the PR-touched paths changed on `main` since its base. ```sh git merge-tree --write-tree upstream/main refs/review/pr-11630-current-20261029 git diff --check upstream/main...refs/review/pr-11630-current-20261029 python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-11630-current-20261029 ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Clean; tree `b7e96091bc6b92eb7acba06a834b71961956d713` | | Diff check | Passed; no output | | Conventions | Passed | | Focused tests | Author reports `guest_http2` tests pass 7/7 on the exact head under Linux/GCC 16.2.1 Release. I did not run them locally. | | Hosted CI | Windows, conventions, labels, report and eligibility passed. Linux product and relinker/register-context/write-watch jobs were skipped by path policy. | <details> <summary>Unedited local check output</summary> ```text b7e96091bc6b92eb7acba06a834b71961956d713 All conventions checks passed. ``` `git diff --check` produced no output and exited 0. </details> ## Findings ### Blocking None found in the updated scope. ### Non-blocking The zero-timeout case remains intentionally unsupported until console behavior is measured; the PR records that limitation in its debt entry. The PR also remains dependent on #11611 as declared in its checklist. ## Sources - [Zero-timeout guard and async wait implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/5a7eef9671dad8caf78fd4dd2127f30c13f2778e/core/libs/prx/libSceHttp2/Export.cpp) - [HTTP/2 tests and debt entry at the reviewed head](https://github.com/boykopovar/AnyPS5/tree/5a7eef9671dad8caf78fd4dd2127f30c13f2778e) - [Author's exact-head test and zero-timeout update](https://github.com/boykopovar/AnyPS5/pull/11630#issuecomment-6509376726) ## Not verified I did not build or run the C++ tests locally. Linux product CI was skipped; the focused Linux test result is author-reported.
MarcZX10 commented 2026-10-30 06:00:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T06:00:25Z.

Review: APPROVED


Re-checked — new head, looks good

The refreshed head is based directly on current main, and the zero-timeout case now remains explicitly unimplemented until console behavior is established.

What I ran

Reviewed exact head 04c86ff08bc7668c405e7b32a3ea40f42131e2a7 against current main 88e2d98f49c949380b45c9cfa266687e28d4443c; the merge preview is clean (55589932ece7e83a5160b518532418730188a5fd). Environment: Linux x86-64; no local build or tests run.

git diff --check upstream/main...refs/reviews/pr-11630-current
python3 tools/check_conventions.py --base upstream/main --head refs/reviews/pr-11630-current
python3 tools/check_main_sync.py --base upstream/main --head refs/reviews/pr-11630-current
git merge-tree --write-tree upstream/main refs/reviews/pr-11630-current
gh pr checks 11630 --repo boykopovar/AnyPS5

Results

Check Result
Diff check Passed; no output
Conventions Passed; All conventions checks passed.
Main synchronization PR is 14 commits ahead and 0 behind current main; merge base is 88e2d98f4
Current-main merge preview Clean; tree 55589932ece7e83a5160b518532418730188a5fd
Focused tests Author reports the focused HTTP/2 tests pass on this head; not independently run
Hosted checks Newly triggered conventions, eligibility, labels, and report checks were pending at review time; prior applicable Windows and relinker checks passed. Linux product and specialized jobs are skipped.

Findings

Blocking

None found. The unsupported zero-timeout behavior is now explicitly rejected and documented as unknown rather than assumed to block.

Non-blocking

The author-reported focused tests were not independently reproduced. Console behavior for zero timeout, kernel event registration, and the ignored trailing argument remains documented as unverified or version-dependent.

Sources

Not verified

I did not build locally, run CTest, inspect a PS5 kernel implementation, or test console behavior. The focused test results are author-reported, and the new hosted checks were pending at review time.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5708623577 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5708623577). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T06:00:25Z. **Review:** APPROVED --- # Re-checked — new head, looks good The refreshed head is based directly on current `main`, and the zero-timeout case now remains explicitly unimplemented until console behavior is established. ## What I ran Reviewed exact head `04c86ff08bc7668c405e7b32a3ea40f42131e2a7` against current `main` `88e2d98f49c949380b45c9cfa266687e28d4443c`; the merge preview is clean (`55589932ece7e83a5160b518532418730188a5fd`). Environment: Linux x86-64; no local build or tests run. ```sh git diff --check upstream/main...refs/reviews/pr-11630-current python3 tools/check_conventions.py --base upstream/main --head refs/reviews/pr-11630-current python3 tools/check_main_sync.py --base upstream/main --head refs/reviews/pr-11630-current git merge-tree --write-tree upstream/main refs/reviews/pr-11630-current gh pr checks 11630 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Diff check | Passed; no output | | Conventions | Passed; `All conventions checks passed.` | | Main synchronization | PR is 14 commits ahead and 0 behind current main; merge base is `88e2d98f4` | | Current-main merge preview | Clean; tree `55589932ece7e83a5160b518532418730188a5fd` | | Focused tests | Author reports the focused HTTP/2 tests pass on this head; not independently run | | Hosted checks | Newly triggered conventions, eligibility, labels, and report checks were pending at review time; prior applicable Windows and relinker checks passed. Linux product and specialized jobs are skipped. | ## Findings ### Blocking None found. The unsupported zero-timeout behavior is now explicitly rejected and documented as unknown rather than assumed to block. ### Non-blocking The author-reported focused tests were not independently reproduced. Console behavior for zero timeout, kernel event registration, and the ignored trailing argument remains documented as unverified or version-dependent. ## Sources - [Current implementation and tests](https://github.com/boykopovar/AnyPS5/tree/04c86ff08bc7668c405e7b32a3ea40f42131e2a7) - [Author's rebase and focused-test update](https://github.com/boykopovar/AnyPS5/pull/11630#issuecomment-6516093225) - [Current main used for the merge preview](https://github.com/boykopovar/AnyPS5/commit/88e2d98f49c949380b45c9cfa266687e28d4443c) ## Not verified I did not build locally, run CTest, inspect a PS5 kernel implementation, or test console behavior. The focused test results are author-reported, and the new hosted checks were pending at review time.
MarcZX10 commented 2026-10-30 07:04:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T07:04:11Z.

Review: APPROVED


Re-checked — new head, looks good

The current head preserves the previously reviewed HTTP/2 change, and the unresolved zero-timeout behavior remains explicitly unimplemented and documented.

What I ran

Reviewed exact head 672314a018ae471de5f50a946bfed6fd2e16c7d2 against base f7f03daf52f11191174b1be089a56e268390a707. Environment: Debian Linux x86_64; no compiler or local build was used. I compared the old and current patch series, checked whether main changed the four PR-touched files since the prior reviewed base, and read the current sceHttp2WaitAsync source.

diff -u <(gh api -H 'Accept: application/vnd.github.patch' repos/boykopovar/AnyPS5/compare/88e2d98f49c949380b45c9cfa266687e28d4443c...04c86ff08bc7668c405e7b32a3ea40f42131e2a7 | git patch-id --stable | awk '{print $1}') <(gh api -H 'Accept: application/vnd.github.patch' repos/boykopovar/AnyPS5/compare/f7f03daf52f11191174b1be089a56e268390a707...672314a018ae471de5f50a946bfed6fd2e16c7d2 | git patch-id --stable | awk '{print $1}')
gh api repos/boykopovar/AnyPS5/compare/88e2d98f49c949380b45c9cfa266687e28d4443c...f7f03daf52f11191174b1be089a56e268390a707 --jq '[.files[]|select(.filename=="core/libs/prx/libSceHttp2/Export.cpp" or .filename=="core/libs/tests/GuestHttp2.cpp" or .filename=="core/libs/tests/GuestHttp2Transport.cpp" or .filename=="docs/dev/debt/libSceHttp2.md")|{filename,additions,deletions}]'
gh api 'repos/boykopovar/AnyPS5/contents/core/libs/prx/libSceHttp2/Export.cpp?ref=672314a018ae471de5f50a946bfed6fd2e16c7d2' --jq .content | base64 -d | grep -n 'timeout && \*timeout == 0'
gh pr checks 11630 --repo boykopovar/AnyPS5

Results

Check Result
Patch series comparison Stable patch IDs match for the previously reviewed and current series
Current-main changes to PR-touched files None between the previous review base and current base
Zero-timeout path Source calls NotImplemented_nid_no_patch(__func__) when timeout is non-null and *timeout == 0
Focused HTTP/2 tests The PR description reports the focused tests passing on the previously reviewed patch; I did not independently run them on this head
Current hosted checks Eligibility passed; conventions, labels, and report remained pending; Linux and specialized jobs skipped
Unedited command output
(the patch-ID diff produced no output; exit status 0)
[]
427:    if (timeout && *timeout == 0) NotImplemented_nid_no_patch(__func__);
conventions	pending	0
eligibility	pending	0
labels	pending	0
report	pending	0

Findings

Blocking

None found. The current diff matches the reviewed patch series, the intervening main commits do not change the files this PR touches, and zero-timeout behavior remains explicitly unimplemented rather than inferred.

Non-blocking

The focused test results are author-reported rather than independently reproduced on this exact commit. The current hosted checks were still pending at review time, and console behavior for a zero timeout remains unknown as documented.

Sources

Not verified

I did not build or run CTest locally, reproduce the focused HTTP/2 tests, or test console/kernel behavior. The author-reported test evidence is for the same reviewed patch series before this rebase; current hosted checks were pending.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5709096767 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5709096767). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T07:04:11Z. **Review:** APPROVED --- # Re-checked — new head, looks good The current head preserves the previously reviewed HTTP/2 change, and the unresolved zero-timeout behavior remains explicitly unimplemented and documented. ## What I ran Reviewed exact head `672314a018ae471de5f50a946bfed6fd2e16c7d2` against base `f7f03daf52f11191174b1be089a56e268390a707`. Environment: Debian Linux x86_64; no compiler or local build was used. I compared the old and current patch series, checked whether `main` changed the four PR-touched files since the prior reviewed base, and read the current `sceHttp2WaitAsync` source. ```sh diff -u <(gh api -H 'Accept: application/vnd.github.patch' repos/boykopovar/AnyPS5/compare/88e2d98f49c949380b45c9cfa266687e28d4443c...04c86ff08bc7668c405e7b32a3ea40f42131e2a7 | git patch-id --stable | awk '{print $1}') <(gh api -H 'Accept: application/vnd.github.patch' repos/boykopovar/AnyPS5/compare/f7f03daf52f11191174b1be089a56e268390a707...672314a018ae471de5f50a946bfed6fd2e16c7d2 | git patch-id --stable | awk '{print $1}') gh api repos/boykopovar/AnyPS5/compare/88e2d98f49c949380b45c9cfa266687e28d4443c...f7f03daf52f11191174b1be089a56e268390a707 --jq '[.files[]|select(.filename=="core/libs/prx/libSceHttp2/Export.cpp" or .filename=="core/libs/tests/GuestHttp2.cpp" or .filename=="core/libs/tests/GuestHttp2Transport.cpp" or .filename=="docs/dev/debt/libSceHttp2.md")|{filename,additions,deletions}]' gh api 'repos/boykopovar/AnyPS5/contents/core/libs/prx/libSceHttp2/Export.cpp?ref=672314a018ae471de5f50a946bfed6fd2e16c7d2' --jq .content | base64 -d | grep -n 'timeout && \*timeout == 0' gh pr checks 11630 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Patch series comparison | Stable patch IDs match for the previously reviewed and current series | | Current-main changes to PR-touched files | None between the previous review base and current base | | Zero-timeout path | Source calls `NotImplemented_nid_no_patch(__func__)` when `timeout` is non-null and `*timeout == 0` | | Focused HTTP/2 tests | The PR description reports the focused tests passing on the previously reviewed patch; I did not independently run them on this head | | Current hosted checks | Eligibility passed; conventions, labels, and report remained pending; Linux and specialized jobs skipped | <details> <summary>Unedited command output</summary> ```text (the patch-ID diff produced no output; exit status 0) [] 427: if (timeout && *timeout == 0) NotImplemented_nid_no_patch(__func__); conventions pending 0 eligibility pending 0 labels pending 0 report pending 0 ``` </details> ## Findings ### Blocking None found. The current diff matches the reviewed patch series, the intervening main commits do not change the files this PR touches, and zero-timeout behavior remains explicitly unimplemented rather than inferred. ### Non-blocking The focused test results are author-reported rather than independently reproduced on this exact commit. The current hosted checks were still pending at review time, and console behavior for a zero timeout remains unknown as documented. ## Sources - [Current HTTP/2 implementation](https://github.com/boykopovar/AnyPS5/blob/672314a018ae471de5f50a946bfed6fd2e16c7d2/core/libs/prx/libSceHttp2/Export.cpp#L417-L445) - [Current base](https://github.com/boykopovar/AnyPS5/commit/f7f03daf52f11191174b1be089a56e268390a707) - [Prior focused-test report](https://github.com/boykopovar/AnyPS5/pull/11630#issuecomment-6516093225) ## Not verified I did not build or run CTest locally, reproduce the focused HTTP/2 tests, or test console/kernel behavior. The author-reported test evidence is for the same reviewed patch series before this rebase; current hosted checks were pending.
MarcZX10 commented 2026-10-31 02:18:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T02:18:29Z.

Review: APPROVED


Re-checked — new head, looks good

The current HTTP/2 change passes the exact-head Windows changed-test job and the author reports 7/7 focused tests on Linux; I found no new blocker.

What I ran

  • Reviewed head 4955621fb5713c3cb300178d5aca32f60e18c987 against PR base c12e7e61a185261d837b6fb2ff1c92a07a00e5ff; live main is 014c19ab19defcd3d198481337f175d58883a50c, and the merge preview onto it is clean.
  • Environment: Linux x86_64, Python 3.11.2, GCC 12.2.0. No local build or tests were run.
  • Commands:
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11630
python3 tools/pr_abi_audit.py --base c12e7e61a185261d837b6fb2ff1c92a07a00e5ff --head 4955621fb5713c3cb300178d5aca32f60e18c987 --json
python3 tools/pr_stack_check.py 11630 --repo boykopovar/AnyPS5

The diff, conventions, ABI audit, and live-main merge preview passed. The Windows job completed its changed-guest-test build/run step successfully on this exact head. The author reports ctest -j8 -R '^guest_http2' passed 7/7 on this exact head (Linux, Ubuntu 24.04, GCC 13.3, Release).

Not verified

I did not run a local build or tests. The full declared stack was not integrated: #11611's current head is not included in this branch, and the PR description specifies that #11611 lands first. This approval covers the reviewed head; follow that landing order before merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5720550327 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5720550327). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T02:18:29Z. **Review:** APPROVED --- # Re-checked — new head, looks good The current HTTP/2 change passes the exact-head Windows changed-test job and the author reports 7/7 focused tests on Linux; I found no new blocker. ## What I ran - Reviewed head `4955621fb5713c3cb300178d5aca32f60e18c987` against PR base `c12e7e61a185261d837b6fb2ff1c92a07a00e5ff`; live `main` is `014c19ab19defcd3d198481337f175d58883a50c`, and the merge preview onto it is clean. - Environment: Linux x86_64, Python 3.11.2, GCC 12.2.0. No local build or tests were run. - Commands: ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11630 python3 tools/pr_abi_audit.py --base c12e7e61a185261d837b6fb2ff1c92a07a00e5ff --head 4955621fb5713c3cb300178d5aca32f60e18c987 --json python3 tools/pr_stack_check.py 11630 --repo boykopovar/AnyPS5 ``` The diff, conventions, ABI audit, and live-main merge preview passed. The [Windows job](https://github.com/boykopovar/AnyPS5/actions/runs/41158368067/job/124410944874) completed its changed-guest-test build/run step successfully on this exact head. The author reports `ctest -j8 -R '^guest_http2'` passed 7/7 on this exact head (Linux, Ubuntu 24.04, GCC 13.3, Release). ## Not verified I did not run a local build or tests. The full declared stack was not integrated: #11611's current head is not included in this branch, and the PR description specifies that #11611 lands first. This approval covers the reviewed head; follow that landing order before merging.
XairRrR commented 2026-11-02 20:41:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-02T20:41:57Z.

Review: APPROVED


Re-checked — approved

The one blocking item from my last review is fixed. sceHttp2WaitAsync now throws for *timeout == 0 and the debt entry records that the behaviour is unknown. The debt entry has also been trimmed, and the branch now merges with main after #11575 landed.

What changed since my last review

I last reviewed 2a97417f63. Since then:

  • ed84628a24 docs(http2): trim the async wait debt entry: the sceHttp2WaitAsync entry is now under 1000 characters.
  • d920b437e9 fix(http2): leave the zero wait timeout unimplemented: a non-null timeout pointing to 0 now calls NotImplemented_nid_no_patch (Export.cpp:430). AsyncBlockingWait now tests the null-timeout path and no longer pins the zero case.
  • 3519324da2: a merge of main that resolves the conflicts with #11575.
    • In GuestHttp2Transport.cpp, Server keeps main's (mode, location, redirectStatus) parameters and adds bindHost as the fourth. Every caller that passes a bind host (Success, Async, AsyncWithoutQueue, AsyncOptionalArguments, AsyncBlockingWait) uses the four-argument form. So the trap B-Howell described, where Server(mode, "localhost") silently sets the redirect location instead, does not happen here.
    • main's old async debt entry is replaced by this PR's two entries.
  • The description now says that the zero-timeout case throws and is not pinned by a test.

What I ran

Head 3519324da2791b88b66f4ab67fbb4c0a962b8a8f, main 9090972b7e91fd266819cbd77a8b058e177b5682, merged tree 714f0f9da59be2f176efde868f0eb27cae0e7df0. Debian 13 VM, Xeon Gold 6136, GCC 14.2.0, Release, Ninja, BUILD_TESTING=ON.

git diff --check 9090972b7e91fd266819cbd77a8b058e177b5682...3519324da2791b88b66f4ab67fbb4c0a962b8a8f
python3 tools/check_conventions.py --base 9090972b7e91fd266819cbd77a8b058e177b5682
ctest --test-dir build -j8 --test-load 32 -R "^guest_http2" --repeat until-fail:3 --output-on-failure
# negative control: production files from main
git show 9090972b7e91fd266819cbd77a8b058e177b5682:core/libs/prx/libSceHttp2/Export.cpp > core/libs/prx/libSceHttp2/Export.cpp
git show 9090972b7e91fd266819cbd77a8b058e177b5682:core/libs/prx/libSceHttp2/include/Http2.hpp > core/libs/prx/libSceHttp2/include/Http2.hpp
ninja -C build -j32 -l32 guest_http2_tests
ctest --test-dir build -R "^guest_http2$" --output-on-failure
ninja -C build -j32 -l32 guest_http2_transport_tests
# restore the merged tree
git show 714f0f9da59be2f176efde868f0eb27cae0e7df0:<both files> > <both files>
ninja -C build -j32 -l32 guest_http2_tests guest_http2_transport_tests libs
git status --porcelain
ctest --test-dir build -R "^guest_http2(_transport)?$"
Check Result
git diff --check Clean
check_conventions.py All conventions checks passed. (the debt-length warning is gone)
Build and libs (script) OK
Script test run 712 run, 710 passed, 1 skip expected; no new failures; unwrap_self also fails on main
guest_http2* (8 tests) ×3 24/24 pass; guest_http2_transport 12.2 s, guest_http2_redirects 13.0 s
Worktree after restore Clean, guest_http2 and guest_http2_transport pass again

Negative control

I restored Export.cpp and Http2.hpp from main:

  • guest_http2 aborts with sceHttp2SendRequestAsync not implemented.
  • guest_http2_transport_tests does not build ('GuestSceHttp2Test' has not been declared, at the publish-hook calls). This matches ycbuzi's Windows control.

My earlier run already covered the write-back assertion at GuestHttp2Transport.cpp:852-857, and that code has not changed since.

Previous findings

  1. Blocking: a zero timeout blocks because of PPSA02195. Resolved. *timeout == 0 now throws at Export.cpp:430. The sceHttp2WaitAsync debt entry now records the question as unknown and no longer says the title "aborts". It now says the title "cancels the request after an immediate timeout", which matches the log lines the author posted. No test pins the zero case.
  2. Blocking: *timeout write-back. Resolved before this round, and the code is unchanged.
  3. Non-blocking: a worker exception is lost when the guest never waits. Still open. The async requests entry says only that a transport exception "is rethrown from the wait". It does not say that a completion which is never waited on drops its exception. A short clause there would cover it.
  4. Non-blocking: duplicate include. Resolved earlier.
  5. Non-blocking: Depends on. Resolved in text: it names #11611 and gives the landing order.
  6. Non-blocking: debt entry over the length limit. Resolved; conventions pass with no warning.
  7. Non-blocking: the deadline arithmetic could reuse TimedWait. Still open and optional. Export.cpp:434-437 still computes the deadline and remainder with std::chrono instead of TimedWait::DeadlineNanos / RemainingMicros, which sceKernelWaitSema uses.

New findings

Blocking

None.

Non-blocking

None. One note: B-Howell reports that RuneScape: Dragonwilds (PPSA34114), Mafia (PPSA14299) and PPSA02195 now stop at the zero-timeout throw. This is the intended result of leaving the case unimplemented. A console measurement of sceKernelWaitSema with a zero timeout would settle it in a follow-up.

Not verified

  • Windows. maskym and B-Howell report passing runs of this head and of an equivalent resolution; I did not run Windows.
  • Console behaviour: zero-timeout semantics, the 11.00 offsets cited in the description, and whether a second submission is rejected.
  • ASan and TSan, and any title run.
  • The combined stack with #11611.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5743032520 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5743032520). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-02T20:41:57Z. **Review:** APPROVED --- # Re-checked — approved The one blocking item from my last review is fixed. `sceHttp2WaitAsync` now throws for `*timeout == 0` and the debt entry records that the behaviour is unknown. The debt entry has also been trimmed, and the branch now merges with `main` after #11575 landed. ## What changed since my last review I last reviewed `2a97417f63`. Since then: - `ed84628a24 docs(http2): trim the async wait debt entry`: the `sceHttp2WaitAsync` entry is now under 1000 characters. - `d920b437e9 fix(http2): leave the zero wait timeout unimplemented`: a non-null `timeout` pointing to 0 now calls `NotImplemented_nid_no_patch` ([`Export.cpp:430`](https://github.com/boykopovar/AnyPS5/blob/3519324da2791b88b66f4ab67fbb4c0a962b8a8f/core/libs/prx/libSceHttp2/Export.cpp#L430-L430)). `AsyncBlockingWait` now tests the null-timeout path and no longer pins the zero case. - `3519324da2`: a merge of `main` that resolves the conflicts with #11575. - In `GuestHttp2Transport.cpp`, `Server` keeps `main`'s `(mode, location, redirectStatus)` parameters and adds `bindHost` as the fourth. Every caller that passes a bind host (`Success`, `Async`, `AsyncWithoutQueue`, `AsyncOptionalArguments`, `AsyncBlockingWait`) uses the four-argument form. So the trap B-Howell described, where `Server(mode, "localhost")` silently sets the redirect location instead, does not happen here. - `main`'s old async debt entry is replaced by this PR's two entries. - The description now says that the zero-timeout case throws and is not pinned by a test. ## What I ran Head `3519324da2791b88b66f4ab67fbb4c0a962b8a8f`, `main` `9090972b7e91fd266819cbd77a8b058e177b5682`, merged tree `714f0f9da59be2f176efde868f0eb27cae0e7df0`. Debian 13 VM, Xeon Gold 6136, GCC 14.2.0, Release, Ninja, `BUILD_TESTING=ON`. ```sh git diff --check 9090972b7e91fd266819cbd77a8b058e177b5682...3519324da2791b88b66f4ab67fbb4c0a962b8a8f python3 tools/check_conventions.py --base 9090972b7e91fd266819cbd77a8b058e177b5682 ctest --test-dir build -j8 --test-load 32 -R "^guest_http2" --repeat until-fail:3 --output-on-failure # negative control: production files from main git show 9090972b7e91fd266819cbd77a8b058e177b5682:core/libs/prx/libSceHttp2/Export.cpp > core/libs/prx/libSceHttp2/Export.cpp git show 9090972b7e91fd266819cbd77a8b058e177b5682:core/libs/prx/libSceHttp2/include/Http2.hpp > core/libs/prx/libSceHttp2/include/Http2.hpp ninja -C build -j32 -l32 guest_http2_tests ctest --test-dir build -R "^guest_http2$" --output-on-failure ninja -C build -j32 -l32 guest_http2_transport_tests # restore the merged tree git show 714f0f9da59be2f176efde868f0eb27cae0e7df0:<both files> > <both files> ninja -C build -j32 -l32 guest_http2_tests guest_http2_transport_tests libs git status --porcelain ctest --test-dir build -R "^guest_http2(_transport)?$" ``` | Check | Result | |---|---| | `git diff --check` | Clean | | `check_conventions.py` | `All conventions checks passed.` (the debt-length warning is gone) | | Build and `libs` (script) | OK | | Script test run | 712 run, 710 passed, 1 skip expected; no new failures; `unwrap_self` also fails on `main` | | `guest_http2*` (8 tests) ×3 | 24/24 pass; `guest_http2_transport` 12.2 s, `guest_http2_redirects` 13.0 s | | Worktree after restore | Clean, `guest_http2` and `guest_http2_transport` pass again | ## Negative control I restored `Export.cpp` and `Http2.hpp` from `main`: - `guest_http2` aborts with `sceHttp2SendRequestAsync not implemented`. - `guest_http2_transport_tests` does not build (`'GuestSceHttp2Test' has not been declared`, at the publish-hook calls). This matches ycbuzi's Windows control. My earlier run already covered the write-back assertion at [`GuestHttp2Transport.cpp:852-857`](https://github.com/boykopovar/AnyPS5/blob/3519324da2791b88b66f4ab67fbb4c0a962b8a8f/core/libs/tests/GuestHttp2Transport.cpp#L852-L857), and that code has not changed since. ## Previous findings 1. **Blocking: a zero timeout blocks because of PPSA02195.** Resolved. `*timeout == 0` now throws at `Export.cpp:430`. The [`sceHttp2WaitAsync` debt entry](https://github.com/boykopovar/AnyPS5/blob/3519324da2791b88b66f4ab67fbb4c0a962b8a8f/docs/dev/debt/libSceHttp2.md#L46-L46) now records the question as unknown and no longer says the title "aborts". It now says the title "cancels the request after an immediate timeout", which matches the log lines the author posted. No test pins the zero case. 2. **Blocking: `*timeout` write-back.** Resolved before this round, and the code is unchanged. 3. **Non-blocking: a worker exception is lost when the guest never waits.** Still open. The [async requests entry](https://github.com/boykopovar/AnyPS5/blob/3519324da2791b88b66f4ab67fbb4c0a962b8a8f/docs/dev/debt/libSceHttp2.md#L45-L45) says only that a transport exception "is rethrown from the wait". It does not say that a completion which is never waited on drops its exception. A short clause there would cover it. 4. **Non-blocking: duplicate include.** Resolved earlier. 5. **Non-blocking: `Depends on`.** Resolved in text: it names #11611 and gives the landing order. 6. **Non-blocking: debt entry over the length limit.** Resolved; conventions pass with no warning. 7. **Non-blocking: the deadline arithmetic could reuse `TimedWait`.** Still open and optional. `Export.cpp:434-437` still computes the deadline and remainder with `std::chrono` instead of `TimedWait::DeadlineNanos` / `RemainingMicros`, which `sceKernelWaitSema` uses. ## New findings ### Blocking None. ### Non-blocking None. One note: B-Howell reports that RuneScape: Dragonwilds (PPSA34114), Mafia (PPSA14299) and PPSA02195 now stop at the zero-timeout throw. This is the intended result of leaving the case unimplemented. A console measurement of `sceKernelWaitSema` with a zero timeout would settle it in a follow-up. ## Not verified - Windows. maskym and B-Howell report passing runs of this head and of an equivalent resolution; I did not run Windows. - Console behaviour: zero-timeout semantics, the 11.00 offsets cited in the description, and whether a second submission is rejected. - ASan and TSan, and any title run. - The combined stack with #11611. <!-- anyps5-bots job=2228 head=3519324da2791b88b66f4ab67fbb4c0a962b8a8f -->
MarcZX10 commented 2026-11-12 01:36:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T01:36:36Z.

Review: APPROVED


Reviewed — looks good

The current async completion implementation and its regression cases address the previously reviewed lifecycle and timeout issues at head b17933dfd42df9c63dc5c0c8df343e5b889352a1.

What I ran

Reviewed the exact head against live main ac94ac850371e12cde7048c3db59135e19a869c3; the merge preview is clean. GitHub’s PR object still reports base d03dd7751e036cb3273c9e543059fc35190add11, so checks used the live branch tip. Environment: Debian Linux x86-64, Python 3.11.2, Git 2.39.5, GCC 12.2.0. I ran the repository precheck and inspected the full five-file diff, including the completion queue, retirement synchronization, wait behavior, tests and debt notes.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11630
git diff --no-ext-diff --unified=4 ac94ac850371e12cde7048c3db59135e19a869c3...b17933dfd42df9c63dc5c0c8df343e5b889352a1

Results

Check Result Note
No-build precheck passed Diff, conventions, ABI and dependency checks passed.
Windows hosted check passed Exact-head job passed.
Other hosted jobs not run Seven Linux and specialized jobs were skipped by CI.
Focused Linux tests not run The PR reports the four guest_http2 suites passing; I did not run them locally.

The precheck’s full results and raw output are in the saved report; the hosted check snapshot is from GitHub for this head.

Findings

Blocking

None found in the reviewed diff.

Non-blocking

The PR documents the known version/title difference for the trailing async option argument; the implementation and tests intentionally retain the behavior used by PPSA22408.

Sources

Not verified

I did not run a local build or CTest, or test on a PS5. The Linux focused-test results are author-reported. Seven hosted jobs were skipped and provide no evidence for their respective platforms or configurations.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5867690945 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5867690945). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-12T01:36:36Z. **Review:** APPROVED --- # Reviewed — looks good The current async completion implementation and its regression cases address the previously reviewed lifecycle and timeout issues at head `b17933dfd42df9c63dc5c0c8df343e5b889352a1`. ## What I ran Reviewed the exact head against live `main` `ac94ac850371e12cde7048c3db59135e19a869c3`; the merge preview is clean. GitHub’s PR object still reports base `d03dd7751e036cb3273c9e543059fc35190add11`, so checks used the live branch tip. Environment: Debian Linux x86-64, Python 3.11.2, Git 2.39.5, GCC 12.2.0. I ran the repository precheck and inspected the full five-file diff, including the completion queue, retirement synchronization, wait behavior, tests and debt notes. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11630 git diff --no-ext-diff --unified=4 ac94ac850371e12cde7048c3db59135e19a869c3...b17933dfd42df9c63dc5c0c8df343e5b889352a1 ``` ## Results | Check | Result | Note | |---|---|---| | No-build precheck | passed | Diff, conventions, ABI and dependency checks passed. | | Windows hosted check | passed | Exact-head job passed. | | Other hosted jobs | not run | Seven Linux and specialized jobs were skipped by CI. | | Focused Linux tests | not run | The PR reports the four `guest_http2` suites passing; I did not run them locally. | The precheck’s full results and raw output are in the saved report; the hosted check snapshot is from GitHub for this head. ## Findings ### Blocking None found in the reviewed diff. ### Non-blocking The PR documents the known version/title difference for the trailing async `option` argument; the implementation and tests intentionally retain the behavior used by PPSA22408. ## Sources - [Async submission and wait implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/b17933dfd42df9c63dc5c0c8df343e5b889352a1/core/libs/prx/libSceHttp2/Export.cpp#L311-L383) - [Wait timeout behavior and validation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/b17933dfd42df9c63dc5c0c8df343e5b889352a1/core/libs/prx/libSceHttp2/Export.cpp#L482-L513) - [Async transport regression cases at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/b17933dfd42df9c63dc5c0c8df343e5b889352a1/core/libs/tests/GuestHttp2Transport.cpp#L1483-L1705) - [Documented compatibility limits at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/b17933dfd42df9c63dc5c0c8df343e5b889352a1/docs/dev/debt/libSceHttp2.md#L47-L48) ## Not verified I did not run a local build or CTest, or test on a PS5. The Linux focused-test results are author-reported. Seven hosted jobs were skipped and provide no evidence for their respective platforms or configurations.
MarcZX10 commented 2026-11-14 07:08:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T07:08:43Z.

Review: COMMENTED


Reviewed — comments

Nothing blocks this review; the points below are optional.

What I ran

Reviewed head 148c3ba01644b418b69ded8105b3d07cac6a2375. No commands or tests were run; repository access was through repo_read.py tools. I read description.md, commits.md, manifest.json, diff.patch, and the changed repository files Export.cpp and Transport.cpp. The prepared listing shows all seven changed files as included, but files.json was not available, so the reviewed-file inventory could not be independently confirmed.

Results

Check Result Note
Prepared diff review passed Async implementation and tests inspected
Tests not run No test execution available
File inventory not run files.json unavailable

Findings

Blocking

None verified in the read code.

Non-blocking

  • Consider documenting that the caller-provided read buffer must remain valid until async completion, and add a focused test or API contract note. sceHttp2ReadDataAsync captures the raw data pointer into a detached worker and passes it to Request::Read (core/libs/prx/libSceHttp2/Export.cpp:250, core/libs/prx/libSceHttp2/Export.cpp:364). The PR description discusses copied send bodies but does not state this read-buffer lifetime requirement.

Not verified

  • Tests reported in the PR description were not run here.
  • I did not read Transport.hpp, Http2.hpp, GuestHttp2.cpp, GuestHttp2Transport.cpp, or docs/dev/debt/libSceHttp2.md; behavior specific to those files is not verified.
  • files.json was unavailable from the review listing, so I could not verify whether every file marked for review was read.
  • Console behavior and the PR's firmware evidence were not independently verified.

To get this to a good state

Nothing is required. Optional: document the async read-buffer lifetime requirement and add a focused test or contract note.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5902518623 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5902518623). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T07:08:43Z. **Review:** COMMENTED --- # Reviewed — comments Nothing blocks this review; the points below are optional. ## What I ran Reviewed head `148c3ba01644b418b69ded8105b3d07cac6a2375`. No commands or tests were run; repository access was through `repo_read.py` tools. I read `description.md`, `commits.md`, `manifest.json`, `diff.patch`, and the changed repository files `Export.cpp` and `Transport.cpp`. The prepared listing shows all seven changed files as included, but `files.json` was not available, so the reviewed-file inventory could not be independently confirmed. ## Results | Check | Result | Note | |---|---|---| | Prepared diff review | passed | Async implementation and tests inspected | | Tests | not run | No test execution available | | File inventory | not run | `files.json` unavailable | ## Findings ### Blocking None verified in the read code. ### Non-blocking - Consider documenting that the caller-provided read buffer must remain valid until async completion, and add a focused test or API contract note. `sceHttp2ReadDataAsync` captures the raw `data` pointer into a detached worker and passes it to `Request::Read` (`core/libs/prx/libSceHttp2/Export.cpp:250`, `core/libs/prx/libSceHttp2/Export.cpp:364`). The PR description discusses copied send bodies but does not state this read-buffer lifetime requirement. ## Not verified - Tests reported in the PR description were not run here. - I did not read `Transport.hpp`, `Http2.hpp`, `GuestHttp2.cpp`, `GuestHttp2Transport.cpp`, or `docs/dev/debt/libSceHttp2.md`; behavior specific to those files is not verified. - `files.json` was unavailable from the review listing, so I could not verify whether every file marked for review was read. - Console behavior and the PR's firmware evidence were not independently verified. ## To get this to a good state Nothing is required. Optional: document the async read-buffer lifetime requirement and add a focused test or contract note.
MarcZX10 commented 2026-11-15 03:33:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T03:33:54Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; the inspected async paths have targeted loopback coverage, but some changed files were not available for review.

What I ran

Read the prepared diff at head ab1f2d5c977d80bba54f670cc8b56675ec25407e and targeted source ranges with repo_read.py. No build or tests were run; the test results in the PR description are author-reported.

Results

Check Result Note
Prepared diff review passed Async paths and listed test scenarios inspected
Build and tests not run PR description reports local Release tests
Full changed-file review not run Full text of one changed file was unavailable

Findings

Blocking

None in the inspected code.

Non-blocking

None.

Not verified

Read: description.md, commits.md, manifest.json, diff.patch; source ranges in core/libs/prx/libSceHttp2/Export.cpp, Transport.cpp, Transport.hpp, include/Http2.hpp, core/libs/tests/GuestHttp2.cpp, GuestHttp2Transport.cpp, and docs/dev/debt/libSceHttp2.md.

The manifest marks all seven changed files as reviewed and included, but the full text of core/libs/prx/libSceHttp2/Export.cpp was unavailable through the review-file path; only targeted ranges were read. files.json was also unavailable. No repository tests, build, console behavior, or author-reported test runs were independently verified.

To get this to a good state

Nothing is required. Optional: review the full Export.cpp and run the reported Release tests before relying on the broader behavior claims.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5908857592 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5908857592). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T03:33:54Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; the inspected async paths have targeted loopback coverage, but some changed files were not available for review. ## What I ran Read the prepared diff at head `ab1f2d5c977d80bba54f670cc8b56675ec25407e` and targeted source ranges with `repo_read.py`. No build or tests were run; the test results in the PR description are author-reported. ## Results | Check | Result | Note | |---|---|---| | Prepared diff review | passed | Async paths and listed test scenarios inspected | | Build and tests | not run | PR description reports local Release tests | | Full changed-file review | not run | Full text of one changed file was unavailable | ## Findings ### Blocking None in the inspected code. ### Non-blocking None. ## Not verified Read: `description.md`, `commits.md`, `manifest.json`, `diff.patch`; source ranges in `core/libs/prx/libSceHttp2/Export.cpp`, `Transport.cpp`, `Transport.hpp`, `include/Http2.hpp`, `core/libs/tests/GuestHttp2.cpp`, `GuestHttp2Transport.cpp`, and `docs/dev/debt/libSceHttp2.md`. The manifest marks all seven changed files as reviewed and included, but the full text of `core/libs/prx/libSceHttp2/Export.cpp` was unavailable through the review-file path; only targeted ranges were read. `files.json` was also unavailable. No repository tests, build, console behavior, or author-reported test runs were independently verified. ## To get this to a good state Nothing is required. Optional: review the full `Export.cpp` and run the reported Release tests before relying on the broader behavior claims.
MarcZX10 commented 2026-11-19 10:45:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T10:45:24Z.

Review: DISMISSED


Reviewed — changes requested

Changes are required before merge: prevent asynchronous reads from being submitted once request deletion or parent teardown has begun.

What I ran

Head: 06638cf07ddaa65816379e029159f0402ae8d598. I read the prepared description, commits, manifest, diff, and changed source at the pinned head through repo_read.py. No commands or tests were run; test results below are author-reported.

Results

Check Result Note
Implementation review failed Read lifecycle race in async read submission
Automated tests not run Author reports Linux Release tests passed

Findings

Blocking

  • core/libs/prx/libSceHttp2/Export.cpp:353 and core/libs/prx/libSceHttp2/Export.cpp:359: sceHttp2ReadDataAsync obtains the request and its async state under g_handlesMutex in Transport, releases that lock, and only later increments inFlight under the state mutex. If deletion or parent teardown removes the handle and retires the state in between, the read path still increments no in-flight count but launches a worker. That worker retains the transport and can call Read after deletion has returned; CompleteAsync then drops its result because the state is retired. This contradicts the stated lifecycle guarantee and permits a read to write into the caller's buffer after deletion. Make validating the live state and registering the operation atomic with handle removal/retirement, and return the invalid-id error if deletion already started.

Non-blocking

None.

Not verified

  • Tests and builds were not run. The Linux/CachyOS Release results in the PR description are author-reported.
  • Console behavior, including firmware-specific async contracts, was not independently verified.
  • All six changed files listed in the manifest were read: core/libs/prx/libSceHttp2/Export.cpp, core/libs/prx/libSceHttp2/Transport.cpp, core/libs/prx/libSceHttp2/Transport.hpp, core/libs/prx/libSceHttp2/include/Http2.hpp, core/libs/tests/GuestHttp2.cpp, core/libs/tests/GuestHttp2Transport.cpp, and docs/dev/debt/libSceHttp2.md. No manifest-excluded changed files were listed.

To get this to a good state

Synchronize async read submission with request deletion and parent teardown so no read worker can start after retirement. Add or adjust a regression test for the submission-versus-delete race, then rerun the relevant HTTP/2 tests on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5973497242 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5973497242). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T10:45:24Z. **Review:** DISMISSED --- # Reviewed — changes requested Changes are required before merge: prevent asynchronous reads from being submitted once request deletion or parent teardown has begun. ## What I ran Head: `06638cf07ddaa65816379e029159f0402ae8d598`. I read the prepared description, commits, manifest, diff, and changed source at the pinned head through `repo_read.py`. No commands or tests were run; test results below are author-reported. ## Results | Check | Result | Note | |---|---|---| | Implementation review | failed | Read lifecycle race in async read submission | | Automated tests | not run | Author reports Linux Release tests passed | ## Findings ### Blocking - `core/libs/prx/libSceHttp2/Export.cpp:353` and `core/libs/prx/libSceHttp2/Export.cpp:359`: `sceHttp2ReadDataAsync` obtains the request and its async state under `g_handlesMutex` in `Transport`, releases that lock, and only later increments `inFlight` under the state mutex. If deletion or parent teardown removes the handle and retires the state in between, the read path still increments no in-flight count but launches a worker. That worker retains the transport and can call `Read` after deletion has returned; `CompleteAsync` then drops its result because the state is retired. This contradicts the stated lifecycle guarantee and permits a read to write into the caller's buffer after deletion. Make validating the live state and registering the operation atomic with handle removal/retirement, and return the invalid-id error if deletion already started. ### Non-blocking None. ## Not verified - Tests and builds were not run. The Linux/CachyOS Release results in the PR description are author-reported. - Console behavior, including firmware-specific async contracts, was not independently verified. - All six changed files listed in the manifest were read: `core/libs/prx/libSceHttp2/Export.cpp`, `core/libs/prx/libSceHttp2/Transport.cpp`, `core/libs/prx/libSceHttp2/Transport.hpp`, `core/libs/prx/libSceHttp2/include/Http2.hpp`, `core/libs/tests/GuestHttp2.cpp`, `core/libs/tests/GuestHttp2Transport.cpp`, and `docs/dev/debt/libSceHttp2.md`. No manifest-excluded changed files were listed. ## To get this to a good state Synchronize async read submission with request deletion and parent teardown so no read worker can start after retirement. Add or adjust a regression test for the submission-versus-delete race, then rerun the relevant HTTP/2 tests on the new head.
MarcZX10 commented 2026-11-20 09:37:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T09:37:34Z.

Review: DISMISSED


Reviewed — changes requested

Changes are required before merge: fix asynchronous request deletion so that it wakes waiters with the documented aborted completion.

What I ran

Reviewed head f2fd1aaef4ecd632caa83cca136a89239dea1abb against the prepared diff. No commands or tests were run. Read the description, commits, diff, and all six changed source and test files included in the manifest; docs/dev/debt/libSceHttp2.md was present in the diff but its full text was not reviewed.

Results

Check Result Note
Diff and changed code review passed Six included source and test files read
Tests not run No test command run
Debt documentation not run Changed file not fully read

Findings

Blocking

  • sceHttp2DeleteRequest calls DropAsync, stops the transport, then calls AbortAsync (core/libs/prx/libSceHttp2/Export.cpp:296-298). DropAsync snapshots in-flight operations into aborted, but AbortAsync marks the state retired and queues aborted completions without notifying waiters until after the lock is released; this is eventually okay for the notification itself. The concrete issue is that Request::Stop may not promptly interrupt an active transport operation, so deletion can block before AbortAsync wakes the waiter. The deletion path must publish/wake aborted completions before waiting for transport shutdown, while ensuring the read buffer is no longer written after deletion returns.

Non-blocking

None.

Not verified

  • Full text of docs/dev/debt/libSceHttp2.md was not read; its diff was inspected.
  • No tests, builds, physical-console behavior, or CI results were independently verified. The description's reported Linux test runs are author-reported.
  • Files excluded by rule were not reviewed; files.json was not available through the reader.

To get this to a good state

Publish aborted completions and wake blocked waiters as part of request deletion before transport shutdown can block; retain the guarantee that no async read writes its buffer after deletion returns. Then rerun the deletion and in-flight async tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5990537119 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-5990537119). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T09:37:34Z. **Review:** DISMISSED --- # Reviewed — changes requested Changes are required before merge: fix asynchronous request deletion so that it wakes waiters with the documented aborted completion. ## What I ran Reviewed head `f2fd1aaef4ecd632caa83cca136a89239dea1abb` against the prepared diff. No commands or tests were run. Read the description, commits, diff, and all six changed source and test files included in the manifest; `docs/dev/debt/libSceHttp2.md` was present in the diff but its full text was not reviewed. ## Results | Check | Result | Note | |---|---|---| | Diff and changed code review | passed | Six included source and test files read | | Tests | not run | No test command run | | Debt documentation | not run | Changed file not fully read | ## Findings ### Blocking - `sceHttp2DeleteRequest` calls `DropAsync`, stops the transport, then calls `AbortAsync` (`core/libs/prx/libSceHttp2/Export.cpp:296-298`). `DropAsync` snapshots in-flight operations into `aborted`, but `AbortAsync` marks the state retired and queues aborted completions without notifying waiters until after the lock is released; this is eventually okay for the notification itself. The concrete issue is that `Request::Stop` may not promptly interrupt an active transport operation, so deletion can block before `AbortAsync` wakes the waiter. The deletion path must publish/wake aborted completions before waiting for transport shutdown, while ensuring the read buffer is no longer written after deletion returns. ### Non-blocking None. ## Not verified - Full text of `docs/dev/debt/libSceHttp2.md` was not read; its diff was inspected. - No tests, builds, physical-console behavior, or CI results were independently verified. The description's reported Linux test runs are author-reported. - Files excluded by rule were not reviewed; `files.json` was not available through the reader. ## To get this to a good state Publish aborted completions and wake blocked waiters as part of request deletion before transport shutdown can block; retain the guarantee that no async read writes its buffer after deletion returns. Then rerun the deletion and in-flight async tests.
MarcZX10 commented 2026-11-22 11:46:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T11:46:38Z.

Review: COMMENTED


Reviewed — comments

Nothing blocks this review, but the documented idle-wait result differs from the implementation and needs clarification.

What I ran

Reviewed head 8c98607585d120019e3df5e0e40d04cfeaaede59. I read the prepared description, commits, manifest, and full diff, then inspected Export.cpp and Transport.cpp at the pinned head. No tests or build commands were run.

Results

Check Result Note
Changed code review passed Async paths inspected
Tests and build not run Description reports author-side tests
Full changed-file text not verified Not every included file was read

Findings

Blocking

None.

Non-blocking

  • sceHttp2WaitAsync returns ERROR_NOT_CONNECTED when no completion is queued and InFlight() == 0, before considering timeout (core/libs/prx/libSceHttp2/Export.cpp:562). The debt entry says the idle case returns 0x817b1065 immediately for zero, finite, and null timeouts, but only says the null-timeout behavior follows the other measurements and is unmeasured (docs/dev/debt/libSceHttp2.md:1128). Please clarify the evidence and ensure the documentation matches the intended contract.

Not verified

  • Full text was included for all seven changed files, but only Export.cpp and Transport.cpp were read at the pinned head. Transport.hpp, include/Http2.hpp, GuestHttp2.cpp, GuestHttp2Transport.cpp, and the debt file were not read as repository files; their diff hunks were inspected where relevant.
  • Builds, tests, and physical-console behavior were not independently verified. The description reports Linux test results.

To get this to a good state

Nothing is required. Optional: clarify the idle null-timeout evidence in the debt entry.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6012045505 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-6012045505). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T11:46:38Z. **Review:** COMMENTED --- # Reviewed — comments Nothing blocks this review, but the documented idle-wait result differs from the implementation and needs clarification. ## What I ran Reviewed head `8c98607585d120019e3df5e0e40d04cfeaaede59`. I read the prepared description, commits, manifest, and full diff, then inspected `Export.cpp` and `Transport.cpp` at the pinned head. No tests or build commands were run. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Async paths inspected | | Tests and build | not run | Description reports author-side tests | | Full changed-file text | not verified | Not every included file was read | ## Findings ### Blocking None. ### Non-blocking - `sceHttp2WaitAsync` returns `ERROR_NOT_CONNECTED` when no completion is queued and `InFlight() == 0`, before considering `timeout` (`core/libs/prx/libSceHttp2/Export.cpp:562`). The debt entry says the idle case returns `0x817b1065` immediately for zero, finite, and null timeouts, but only says the null-timeout behavior follows the other measurements and is unmeasured (`docs/dev/debt/libSceHttp2.md:1128`). Please clarify the evidence and ensure the documentation matches the intended contract. ## Not verified - Full text was included for all seven changed files, but only `Export.cpp` and `Transport.cpp` were read at the pinned head. `Transport.hpp`, `include/Http2.hpp`, `GuestHttp2.cpp`, `GuestHttp2Transport.cpp`, and the debt file were not read as repository files; their diff hunks were inspected where relevant. - Builds, tests, and physical-console behavior were not independently verified. The description reports Linux test results. ## To get this to a good state Nothing is required. Optional: clarify the idle null-timeout evidence in the debt entry.
MarcZX10 commented 2026-11-25 10:12:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T10:12:55Z.

Review: COMMENTED


Reviewed — no blocking findings

The inspected asynchronous HTTP/2 paths show no verified blocking defect, but the review is incomplete because I did not run the reported checks or read every changed file in full.

What I ran

  • Reviewed head 301e49b659435752a0477f6de21a7092a142b1e1.
  • No commands or tests were run. The PR description reports Linux (CachyOS), GCC 16.2.1 and passing Release tests; these were not independently verified.

Results

Check Result Note
Prepared diff and change summary passed Inspected
Targeted async source review passed Partial source ranges read
Reported Release tests not run Author-reported only
Negative control not run No test mutation performed

Negative control

Could not run a negative control because no tests were run.

Findings

Blocking

None verified in the inspected code.

Non-blocking

None.

Sources

Inspected the prepared description, commits, manifest, diff, and targeted ranges in Export.cpp and GuestHttp2Transport.cpp. The included changed files are Export.cpp, Transport.cpp, Transport.hpp, include/Http2.hpp, GuestHttp2.cpp, GuestHttp2Transport.cpp, and docs/dev/debt/libSceHttp2.md.

Not verified

The full text of changed files was not read; only selected ranges from Export.cpp and GuestHttp2Transport.cpp were inspected. No files were listed as excluded in the prepared review-folder listing. The build and tests, runtime behavior outside the inspected paths, and console behavior were not independently verified.

To get this to a good state

Nothing is required. Optional: run the reported Release tests and complete review of the changed files before treating this as a formal approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6055622197 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11630#pullrequestreview-6055622197). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T10:12:55Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected asynchronous HTTP/2 paths show no verified blocking defect, but the review is incomplete because I did not run the reported checks or read every changed file in full. ## What I ran - Reviewed head `301e49b659435752a0477f6de21a7092a142b1e1`. - No commands or tests were run. The PR description reports Linux (CachyOS), GCC 16.2.1 and passing Release tests; these were not independently verified. ## Results | Check | Result | Note | |---|---|---| | Prepared diff and change summary | passed | Inspected | | Targeted async source review | passed | Partial source ranges read | | Reported Release tests | not run | Author-reported only | | Negative control | not run | No test mutation performed | ## Negative control Could not run a negative control because no tests were run. ## Findings ### Blocking None verified in the inspected code. ### Non-blocking None. ## Sources Inspected the prepared description, commits, manifest, diff, and targeted ranges in `Export.cpp` and `GuestHttp2Transport.cpp`. The included changed files are `Export.cpp`, `Transport.cpp`, `Transport.hpp`, `include/Http2.hpp`, `GuestHttp2.cpp`, `GuestHttp2Transport.cpp`, and `docs/dev/debt/libSceHttp2.md`. ## Not verified The full text of changed files was not read; only selected ranges from `Export.cpp` and `GuestHttp2Transport.cpp` were inspected. No files were listed as excluded in the prepared review-folder listing. The build and tests, runtime behavior outside the inspected paths, and console behavior were not independently verified. ## To get this to a good state Nothing is required. Optional: run the reported Release tests and complete review of the changed files before treating this as a formal approval.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/11630:upstream-pr/11630'
git switch 'upstream-pr/11630'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/11630'
git switch 'upstream-pr/11630'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/11630'
git switch 'upstream-pr/11630'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/11630'
git switch 'main'
git merge --squash 'upstream-pr/11630'
git switch 'main'
git merge --ff-only 'upstream-pr/11630'
git switch 'main'
git merge 'upstream-pr/11630'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!11630
No description provided.