docs(debt): correct libSceHttp2 redirect cache statement #15709

Merged
sherySJ merged 1 commit from upstream-pr/15709 into main 2026-11-07 20:14:21 +00:00
sherySJ commented 2026-11-04 08:51:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by sherySJ on 2026-11-04T08:51:37Z.


What

  • docs/dev/debt/libSceHttp2.md:5: the sceHttp2RedirectCacheFlush Silent stubs entry says "automatic redirects throw, so there is no redirect cache to flush". That is no longer true.
  • Evidence on origin/main b11c7bf84f: core/libs/prx/libSceHttp2/Transport.cpp:947-1023 loops over 301/302/303/307/308 responses, calls the redirect callback, stops after six redirects and reconnects to the target; core/libs/prx/libSceHttp2/Transport.hpp:33 has int redirect = 1;, so following is the default. Only the exceptional paths throw, as the libSceHttp2 redirects entry at line 50 already says.
  • History: bffc7eda85 (#10536) wrote the clause while the transport rejected redirects. 59bc5a8f19 (#11586) made the transport follow them and removed the matching transport entry, but missed line 5.
  • Change: "redirects are followed without a cache, so there is nothing to flush". The rest of the entry is still true: sceHttp2RedirectCacheFlush is (void)lib_http2_ctx_id; return 0; (core/libs/prx/libSceHttp2/Export.cpp:465-468) and Transport.cpp has no redirect cache.

Tested

Docs only, no build. Run on head 413723186f (2026-11-04T08:59Z):

  • python3 tools/check_conventions.py --base origin/main: All conventions checks passed.
  • git diff --check origin/main: clean.
  • git log -S"automatic redirects throw" origin/main -- docs/dev/debt: only bffc7eda85.
  • git show 59bc5a8f19 -- docs/dev/debt/libSceHttp2.md: removes the transport entry's redirect wording, leaves line 5.

Overlap

Base: origin/main b11c7bf84f, checked 2026-11-04T08:58Z. Open PRs touching docs/dev/debt/libSceHttp2.md (via gh pr list --state open --json files), each fetched with git fetch origin pull/<n>/head:refs/remotes/pr/<n>:

  • #15231 (3989a014e7): conflicts with main on its own (GuestHttp2Transport.cpp, libSceHttp2.md); same set with this head.
  • #15221 (f8d311330d): conflicts with main on its own (GuestHttp2Transport.cpp); same set with this head.
  • #14212 (6cdd76ba7a): conflicts with main on its own (many docs/dev/debt files); same set with this head.
  • #14085 (3371d66fbe): merges cleanly with main and with this head.
  • #12456 (8432e0b64a): conflicts with main on its own (Transport.cpp, GuestHttp2.cpp, GuestHttp2Transport.cpp, libSceHttp2.md); same set with this head.
  • #12305 (6701eec202): conflicts with main on its own (Export.cpp, Transport.cpp, Transport.hpp, GuestHttp2Transport.cpp); same set with this head.
  • #11950 (760eba6585): merges cleanly with main and with this head.
  • #11630 (3519324da2): conflicts with main on its own (GuestHttp2Transport.cpp, libSceHttp2.md); same set with this head.
  • #11470 (324c6ddfe2): conflicts with main on its own (GuestHttp2.cpp, libSceHttp2.md); same set with this head.

No PR changes the sceHttp2RedirectCacheFlush line (the line is byte-identical to origin/main in every head). Checked with git merge-tree --write-tree origin/main <pr head> and git merge-tree --write-tree <this head> <pr head>: this head adds no conflict that main does not already have with those PRs.

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: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5151592740 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15709). Originally posted by [sherySJ](https://github.com/sherySJ) on 2026-11-04T08:51:37Z. --- ### What - `docs/dev/debt/libSceHttp2.md:5`: the `sceHttp2RedirectCacheFlush` Silent stubs entry says "automatic redirects throw, so there is no redirect cache to flush". That is no longer true. - Evidence on `origin/main` b11c7bf84f: `core/libs/prx/libSceHttp2/Transport.cpp:947-1023` loops over 301/302/303/307/308 responses, calls the redirect callback, stops after six redirects and reconnects to the target; `core/libs/prx/libSceHttp2/Transport.hpp:33` has `int redirect = 1;`, so following is the default. Only the exceptional paths throw, as the `libSceHttp2 redirects` entry at line 50 already says. - History: bffc7eda85 (#10536) wrote the clause while the transport rejected redirects. 59bc5a8f19 (#11586) made the transport follow them and removed the matching transport entry, but missed line 5. - Change: "redirects are followed without a cache, so there is nothing to flush". The rest of the entry is still true: `sceHttp2RedirectCacheFlush` is `(void)lib_http2_ctx_id; return 0;` (`core/libs/prx/libSceHttp2/Export.cpp:465-468`) and `Transport.cpp` has no redirect cache. ### Tested Docs only, no build. Run on head 413723186f (2026-11-04T08:59Z): - `python3 tools/check_conventions.py --base origin/main`: All conventions checks passed. - `git diff --check origin/main`: clean. - `git log -S"automatic redirects throw" origin/main -- docs/dev/debt`: only bffc7eda85. - `git show 59bc5a8f19 -- docs/dev/debt/libSceHttp2.md`: removes the transport entry's redirect wording, leaves line 5. ### Overlap Base: `origin/main` b11c7bf84f, checked 2026-11-04T08:58Z. Open PRs touching `docs/dev/debt/libSceHttp2.md` (via `gh pr list --state open --json files`), each fetched with `git fetch origin pull/<n>/head:refs/remotes/pr/<n>`: - #15231 (3989a014e7): conflicts with main on its own (GuestHttp2Transport.cpp, libSceHttp2.md); same set with this head. - #15221 (f8d311330d): conflicts with main on its own (GuestHttp2Transport.cpp); same set with this head. - #14212 (6cdd76ba7a): conflicts with main on its own (many docs/dev/debt files); same set with this head. - #14085 (3371d66fbe): merges cleanly with main and with this head. - #12456 (8432e0b64a): conflicts with main on its own (Transport.cpp, GuestHttp2.cpp, GuestHttp2Transport.cpp, libSceHttp2.md); same set with this head. - #12305 (6701eec202): conflicts with main on its own (Export.cpp, Transport.cpp, Transport.hpp, GuestHttp2Transport.cpp); same set with this head. - #11950 (760eba6585): merges cleanly with main and with this head. - #11630 (3519324da2): conflicts with main on its own (GuestHttp2Transport.cpp, libSceHttp2.md); same set with this head. - #11470 (324c6ddfe2): conflicts with main on its own (GuestHttp2.cpp, libSceHttp2.md); same set with this head. No PR changes the `sceHttp2RedirectCacheFlush` line (the line is byte-identical to `origin/main` in every head). Checked with `git merge-tree --write-tree origin/main <pr head>` and `git merge-tree --write-tree <this head> <pr head>`: this head adds no conflict that main does not already have with those PRs. ### 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: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
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!15709
No description provided.