Skip to content

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

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
sherySJ:agent/anyps5-debt-http2
Nov 7, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
sherySJ:agent/anyps5-debt-http2

Conversation

@sherySJ

@sherySJ sherySJ commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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 b11c7bf: 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: bffc7ed (feat(libSceHttp2): implement request option getters, header removal a… #10536) wrote the clause while the transport rejected redirects. 59bc5a8 (feat(http2): deliver TLS certificate verification callbacks #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 4137231 (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 bffc7ed.
  • git show 59bc5a8f19 -- docs/dev/debt/libSceHttp2.md: removes the transport entry's redirect wording, leaves line 5.

Overlap

Base: origin/main b11c7bf, 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>:

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

Old: "automatic redirects throw, so there is no redirect cache to flush"
New: "redirects are followed without a cache, so there is nothing to
flush"

Evidence:
- core/libs/prx/libSceHttp2/Transport.cpp:947-1023 loops over 301, 302,
  303, 307 and 308 responses, calls the redirect callback and stops
  after six redirects.
- core/libs/prx/libSceHttp2/Transport.hpp:33 has `int redirect = 1;`,
  so following is the default.
- core/libs/prx/libSceHttp2/Export.cpp:465-468
  sceHttp2RedirectCacheFlush still returns 0 without a cache, so the
  rest of the entry is unchanged.
- bffc7ed (boykopovar#10536) wrote the old clause while the transport rejected
  redirects. 59bc5a8 (boykopovar#11586) made the transport follow them and
  removed the matching transport entry but missed this line.
@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 14212 docs/dev/debt/libSceHttp2.md
PR 16231 docs/dev/debt/libSceHttp2.md
PR 16292 docs/dev/debt/libSceHttp2.md

@adriadam10 adriadam10 self-assigned this Nov 7, 2026
@adriadam10
adriadam10 merged commit 8e01934 into boykopovar:main Nov 7, 2026
11 of 12 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the claim against Transport.cpp (301/302/303/307/308 are followed, redirect = 1 by default) and sceHttp2RedirectCacheFlush (still a no-op returning 0); the debt line is now accurate; merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants