feat(libSceHttp): implement cookie-enabled option state #9413

Merged
MarcZX10 merged 3 commits from upstream-pr/9413 into main 2026-10-23 06:28:54 +00:00
MarcZX10 commented 2026-10-21 21:07:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T21:07:40Z.


What

Implements per-object cookie-enabled option state. sceHttpSetCookieEnabled validates its 0/1 argument and object lifecycle, while sceHttpGetCookieEnabled reads the state. New connections and requests inherit the option from their parent; child changes remain isolated. The offline HTTP backend still has no cookie engine, so this change does not parse, store or send cookies.

Tested

Linux: cmake --build /tmp/AnyPS5-http-cookie-option-build --target guest_http_options_tests --parallel 4 passed. ctest --test-dir /tmp/AnyPS5-http-cookie-option-build -R '^guest_http_options$' --output-on-failure could not execute the test: this host's Intel Xeon E5-1620 v2 lacks AVX2, FMA, BMI1, BMI2, LZCNT and MOVBE required by AnyPS5. python3 tools/check_conventions.py --base upstream/main, python3 tools/pr_overlap.py --branch feat/http-cookie-enabled-option, and git diff --check passed. No PS5 hardware run.

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: #9405
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4958376381 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9413). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T21:07:40Z. --- ### What Implements per-object cookie-enabled option state. `sceHttpSetCookieEnabled` validates its 0/1 argument and object lifecycle, while `sceHttpGetCookieEnabled` reads the state. New connections and requests inherit the option from their parent; child changes remain isolated. The offline HTTP backend still has no cookie engine, so this change does not parse, store or send cookies. ### Tested Linux: `cmake --build /tmp/AnyPS5-http-cookie-option-build --target guest_http_options_tests --parallel 4` passed. `ctest --test-dir /tmp/AnyPS5-http-cookie-option-build -R '^guest_http_options$' --output-on-failure` could not execute the test: this host's Intel Xeon E5-1620 v2 lacks AVX2, FMA, BMI1, BMI2, LZCNT and MOVBE required by AnyPS5. `python3 tools/check_conventions.py --base upstream/main`, `python3 tools/pr_overlap.py --branch feat/http-cookie-enabled-option`, and `git diff --check` passed. No PS5 hardware run. ### 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](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: #9405 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
jotitadev commented 2026-10-21 23:34:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-21T23:34:03Z.

Review: COMMENTED


First execution of this test. The description notes the author's Linux host lacks AVX2, so ctest could not run there; this is the first actual run of guest_http_options for this change.

Machine: Linux x86_64, i7-8700 (6 cores / 12 threads), Ubuntu 26.04, GCC 15.2, Release, BUILD_TESTING=ON, full build. Head 8b0ef9dc6 (a rebase of the validated ae9da63f2 onto main a6dcea927, same diff). Validated at ae9da63f2 merged onto main 0c6a5bd59.

  • Build ok. guest_http_options passes.
  • Restoring libSceHttp/Export.cpp and libSceHttp/src/Options.hpp to main and keeping the test aborts it with sceHttpGetCookieEnabled not implemented, so the test covers the change.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607512254 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9413#pullrequestreview-5607512254). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-21T23:34:03Z. **Review:** COMMENTED --- First execution of this test. The description notes the author's Linux host lacks AVX2, so `ctest` could not run there; this is the first actual run of `guest_http_options` for this change. Machine: Linux x86_64, i7-8700 (6 cores / 12 threads), Ubuntu 26.04, GCC 15.2, Release, `BUILD_TESTING=ON`, full build. Head `8b0ef9dc6` (a rebase of the validated `ae9da63f2` onto `main` `a6dcea927`, same diff). Validated at `ae9da63f2` merged onto `main` `0c6a5bd59`. - Build ok. `guest_http_options` passes. - Restoring `libSceHttp/Export.cpp` and `libSceHttp/src/Options.hpp` to `main` and keeping the test aborts it with `sceHttpGetCookieEnabled not implemented`, so the test covers the change. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
xXPBSXx commented 2026-10-21 23:59:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-21T23:59:56Z.


Independent Windows run of this PR (data only).

Environment: Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against main is clean. I built only guest_http_options_tests; ctest -N -R guest_http_options lists exactly one test.

PR head tested: 8b0ef9dc6565a2291579156fc3ee1c3f06d4390e.

Results (3 runs each):

  • PR head: guest_http_options passes 3/3.
  • Baseline: I kept the PR's test and replaced only these production files: core/libs/prx/libSceHttp/Export.cpp, core/libs/prx/libSceHttp/src/Options.hpp with the version from the PR's merge base (a6dcea9279), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards.

GPU: the run output has no Selected GPU line; no GPU claim is made.

Not run: other platforms, the other tests in the same family, the full repository CTest, and any title or console run.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6329278255 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9413#issuecomment-6329278255). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-21T23:59:56Z. --- Independent Windows run of this PR (data only). **Environment:** Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against `main` is clean. I built only `guest_http_options_tests`; `ctest -N -R guest_http_options` lists exactly one test. **PR head tested:** `8b0ef9dc6565a2291579156fc3ee1c3f06d4390e`. **Results (3 runs each):** - PR head: `guest_http_options` passes 3/3. - Baseline: I kept the PR's test and replaced only these production files: `core/libs/prx/libSceHttp/Export.cpp`, `core/libs/prx/libSceHttp/src/Options.hpp` with the version from the PR's merge base (`a6dcea9279`), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards. **GPU:** the run output has no `Selected GPU` line; no GPU claim is made. **Not run:** other platforms, the other tests in the same family, the full repository CTest, and any title or console run. AI-assisted (Claude Code).
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!9413
No description provided.