fix(libSceHttp): retain request-status callbacks with the guest ABI #2788

Merged
tototomate123 merged 1 commit from upstream-pr/2788 into main 2026-10-11 07:32:00 +00:00
tototomate123 commented 2026-10-10 15:00:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by tototomate123 on 2026-10-10T15:00:34Z.


What

Split from #1616, following its review. Retain request-status callbacks and user data using the three-argument ABI from shadPS4; remove registrations when requests are deleted. The offline backend never dispatches callbacks. Unknown function info records the uncited invalid-id error 0x80431100 and incomplete hierarchy/deletion validation; the entry sits inside the section, away from recent insertions.

Tested

Linux x86-64, GCC 16.2.1, Release. guest_http passes, including callback registration, replacement, removal and invalid ids. MinGW C++20 syntax check passes; Windows runtime/CI has not been run locally. Conventions and whitespace checks pass on current main (5edae353).

Depends on

None for build. HFW integration also needs #2785 (relinker), #2786 (loader), #2787 (filesystem), #2789 (apr), #2790 (shader). #1269 (media), #1339 (VRR), #1586 (unwind) and #1436 (imports) are now on main. Local image-table experiments are excluded; open #757 → #758 overlaps them, and #920 is closed without merging. Earlier combined integration reached menu/loading UI; these isolated branches have not been game-tested and gameplay is unverified.

Checklist

  • Based on current main; no duplicate implementation found beyond superseded #1616
  • One topic per PR
  • No code comments except technical debt
  • Unimplemented paths throw; offline HTTP limitations documented
  • No investigation notes, logs or images committed
  • No new third-party dependencies
  • Generic behavior; no title-specific dispatch
  • Depends on: none for build; HFW integration requirements listed above
  • AI-assisted: yes, Codex
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4812130128 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2788). Originally posted by [tototomate123](https://github.com/tototomate123) on 2026-10-10T15:00:34Z. --- ### What Split from #1616, following its review. Retain request-status callbacks and user data using the three-argument ABI from [shadPS4](https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/network/http.cpp); remove registrations when requests are deleted. The offline backend never dispatches callbacks. `Unknown function info` records the uncited invalid-id error `0x80431100` and incomplete hierarchy/deletion validation; the entry sits inside the section, away from recent insertions. ### Tested Linux x86-64, GCC 16.2.1, Release. `guest_http` passes, including callback registration, replacement, removal and invalid ids. MinGW C++20 syntax check passes; Windows runtime/CI has not been run locally. Conventions and whitespace checks pass on current main (`5edae353`). ### Depends on None for build. HFW integration also needs #2785 (relinker), #2786 (loader), #2787 (filesystem), #2789 (apr), #2790 (shader). #1269 (media), #1339 (VRR), #1586 (unwind) and #1436 (imports) are now on main. Local image-table experiments are excluded; open #757 → #758 overlaps them, and #920 is closed without merging. Earlier combined integration reached menu/loading UI; these isolated branches have not been game-tested and gameplay is unverified. ### Checklist - [x] Based on current `main`; no duplicate implementation found beyond superseded #1616 - [x] One topic per PR - [x] No code comments except technical debt - [x] Unimplemented paths throw; offline HTTP limitations documented - [x] No investigation notes, logs or images committed - [x] No new third-party dependencies - [x] Generic behavior; no title-specific dispatch - [x] Depends on: none for build; HFW integration requirements listed above - [x] AI-assisted: yes, Codex
github-actions[bot] commented 2026-10-10 15:01:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T15:01:27Z.


Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6098840325 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2788#issuecomment-6098840325). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T15:01:27Z. --- Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
github-actions[bot] commented 2026-10-10 15:02:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T15:02:00Z.


Progress report (ccb299c → 63d2911)

📈 System libraries: 85.84% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceHttp sceHttpSetRequestStatusCallback
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6098844895 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2788#issuecomment-6098844895). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T15:02:00Z. --- <!-- progress-report --> ### Progress report (ccb299c → 63d2911) 📈 **System libraries**: 85.84% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceHttp | `sceHttpSetRequestStatusCallback` | </details>
oneandonlydean commented 2026-10-11 05:08:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T05:08:40Z.


Reopened. There is a conflict in docs/dev/TechnicalDebt.md. Can you rebase?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6105702627 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2788#issuecomment-6105702627). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T05:08:40Z. --- Reopened. There is a conflict in `docs/dev/TechnicalDebt.md`. Can you rebase?
adriadam10 commented 2026-10-11 07:23:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:23:03Z.


Rebased onto current main (the only conflict was adjacency in docs/dev/TechnicalDebt.md, both lines kept). Checked guest_http plus the other tests in the touched directories on Linux/GCC; guest_http fails without the change. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106638393 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2788#issuecomment-6106638393). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T07:23:03Z. --- Rebased onto current main (the only conflict was adjacency in `docs/dev/TechnicalDebt.md`, both lines kept). Checked `guest_http` plus the other tests in the touched directories on Linux/GCC; `guest_http` fails without the change. Merging.
Mouhand-Kaddo commented 2026-10-11 07:31:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-11T07:31:42Z.


Additional platform validation of standalone PR head 63d29116b478102d78256cfc9d9b0cdfe94ad1df (2026-10-11):

Windows: passed — Windows 11, WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja; Release, BUILD_TESTING=ON.

1 checks, 0 failures, 0 CTest skips. Built the selected targets and dependencies; this is focused validation, not a full build or full-suite run.

Checks: guest_http.

Command after building: ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^guest_http$".

No title/gameplay validation. These results cover the standalone head, not a merge with current main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106703592 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2788#issuecomment-6106703592). Originally posted by [Mouhand-Kaddo](https://github.com/Mouhand-Kaddo) on 2026-10-11T07:31:42Z. --- <!-- anyps5-platform-validation:63d29116b478102d78256cfc9d9b0cdfe94ad1df --> Additional platform validation of standalone PR head `63d29116b478102d78256cfc9d9b0cdfe94ad1df` (2026-10-11): **Windows: passed** — Windows 11, WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja; Release, `BUILD_TESTING=ON`. 1 checks, 0 failures, 0 CTest skips. Built the selected targets and dependencies; this is focused validation, not a full build or full-suite run. Checks: `guest_http`. Command after building: `ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^guest_http$"`. No title/gameplay validation. These results cover the standalone head, not a merge with current 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!2788
No description provided.