feat(libSceHttp2): implement sceHttp2DeleteCookieBox #3869

Merged
gookie-dev merged 1 commit from upstream-pr/3869 into main 2026-10-12 14:08:33 +00:00
gookie-dev commented 2026-10-11 18:18:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gookie-dev on 2026-10-11T18:18:45Z.


What

PPSA35943 (Graveyard Keeper 2) imports sceHttp2DeleteCookieBox (O9ync3F-JVI), which no library exported. On current main the title first stops at sceSaveDataDirNameSearch2, which open #3814 adds; with #3814 the loader stops it here:

./eboot.elf: symbol lookup error: ./eboot.elf: undefined symbol: O9ync3F-JVI

sceHttp2CreateCookieBox now records the ids it returns, and sceHttp2DeleteCookieBox(cookieBoxId) discards a recorded box and returns 0, or the library's invalid-id error (0x817B1100) for an id that is not a live box. The signature follows SharpProspero and the behaviour prosper's implementation; the error code is listed in TechnicalDebt as not measured on a console.

Note: #3535 also changes sceHttp2CreateCookieBox (it moves handles into one typed registry and does not add this export), so whichever of the two lands second needs a small rebase.

Tested

Ubuntu 24.04, GCC 13.3, Release.

  • guest_http2 deletes a box twice and an id that is not a box, and deletes the boxes it uses before sceHttp2Term. It does not link on main (no sceHttp2DeleteCookieBox) and passes with this change.
  • PPSA35943 (relinked with --to-intel) with #3814 merged locally: stops at the line above without this change; with it, the title loads and runs into its asset loading.

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 in TechnicalDebt
  • 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: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4821259944 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3869). Originally posted by [gookie-dev](https://github.com/gookie-dev) on 2026-10-11T18:18:45Z. --- ### What PPSA35943 (Graveyard Keeper 2) imports `sceHttp2DeleteCookieBox` (`O9ync3F-JVI`), which no library exported. On current `main` the title first stops at `sceSaveDataDirNameSearch2`, which open #3814 adds; with #3814 the loader stops it here: ``` ./eboot.elf: symbol lookup error: ./eboot.elf: undefined symbol: O9ync3F-JVI ``` `sceHttp2CreateCookieBox` now records the ids it returns, and `sceHttp2DeleteCookieBox(cookieBoxId)` discards a recorded box and returns 0, or the library's invalid-id error (0x817B1100) for an id that is not a live box. The signature follows [SharpProspero](https://github.com/SvenGDK/SharpProspero/blob/5dfdb4b0b166e83dc9ae275001afb695f12c7174/src/SharpProspero/Interop/Net/Http2.cs#L215-L217) and the behaviour [prosper's implementation](https://github.com/mattias800/prosper/blob/b1bec57186a0/prosper/src/hle/net/hle_http2.cpp#L512-L523); the error code is listed in TechnicalDebt as not measured on a console. Note: #3535 also changes `sceHttp2CreateCookieBox` (it moves handles into one typed registry and does not add this export), so whichever of the two lands second needs a small rebase. ### Tested Ubuntu 24.04, GCC 13.3, Release. - `guest_http2` deletes a box twice and an id that is not a box, and deletes the boxes it uses before `sceHttp2Term`. It does not link on `main` (no `sceHttp2DeleteCookieBox`) and passes with this change. - PPSA35943 (relinked with `--to-intel`) with #3814 merged locally: stops at the line above without this change; with it, the title loads and runs into its asset loading. ### Checklist - [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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in TechnicalDebt - [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: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-11 18:19:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T18:19:09Z.


Progress report (e7c70a2 → ce0915e)

➖ System libraries: 86.23% (+0.0%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceHttp2 sceHttp2DeleteCookieBox
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6112170371 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3869#issuecomment-6112170371). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T18:19:09Z. --- <!-- progress-report --> ### Progress report (e7c70a2 → ce0915e) ➖ **System libraries**: 86.23% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceHttp2 | `sceHttp2DeleteCookieBox` | </details>
oneandonlydean commented 2026-10-11 23:18:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:18:00Z.


#3535 moved the Http2 handles into g_handles with Http2Kind::CookieBox, so this now conflicts in core/libs/prx/libSceHttp2/Export.cpp. Please rebase and have sceHttp2DeleteCookieBox erase the box from that registry instead of keeping a separate g_cookieBoxes set.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115014853 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3869#issuecomment-6115014853). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T23:18:00Z. --- #3535 moved the Http2 handles into `g_handles` with `Http2Kind::CookieBox`, so this now conflicts in `core/libs/prx/libSceHttp2/Export.cpp`. Please rebase and have `sceHttp2DeleteCookieBox` erase the box from that registry instead of keeping a separate `g_cookieBoxes` set.
gookie-dev commented 2026-10-12 10:27:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gookie-dev on 2026-10-12T10:27:38Z.


Rebased on main. sceHttp2DeleteCookieBox now erases the Http2Kind::CookieBox entry from g_handles and returns 0x817B1100 for anything else; the separate g_cookieBoxes set is gone. guest_http2 also checks that a box whose context was terminated can no longer be deleted.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6122407860 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3869#issuecomment-6122407860). Originally posted by [gookie-dev](https://github.com/gookie-dev) on 2026-10-12T10:27:38Z. --- Rebased on main. `sceHttp2DeleteCookieBox` now erases the `Http2Kind::CookieBox` entry from `g_handles` and returns `0x817B1100` for anything else; the separate `g_cookieBoxes` set is gone. `guest_http2` also checks that a box whose context was terminated can no longer be deleted.
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!3869
No description provided.