feat(http2): support synchronous HTTP/1.0 and HTTP/1.1 requests #11611

Merged
JJenkx merged 4 commits from upstream-pr/11611 into main 2026-11-04 05:33:31 +00:00
JJenkx commented 2026-10-26 22:43:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-26T22:43:31Z.


What

Adds synchronous HTTP/1.0 and HTTP/1.1 requests to libSceHttp2 over HTTP or TLS, using the existing nonblocking DNS/socket/TLS machinery and the shared libSceHttp status parser. Version 3 remains HTTPS with ALPN h2. Supports uploads, fixed-length/chunked/close-delimited responses, raw HTTP1 headers, inherited settings, redirect and certificate callbacks, early final responses, and existing abort/deletion/deadline handling. Malformed and unsupported framing throws; the console ABI/error-mapping gaps remain documented.

Based on main 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24, which already includes merged SSL-callback #11586 and redirect #11575. This branch is now only three HTTP/1.x topic commits on that main, without merge commits. Keeps main's #11627 Host-header support. HTTP/1 uses the effective template/request Host override once, instead of adding both the URL Host and a second custom Host. Main's HTTP/2 HostAuthority regression and this branch's HTTP/1 framing/deadline/cancellation fixtures are retained.

HTTP/1 gzip inflation remains unsupported. With inflation disabled, tests retain raw compressed bytes and wire lengths; enabled identity responses and bodyless HEAD remain covered. Tests do not require unsupported enabled HTTP/1 gzip inflation to throw. Peer #9834 implements a different library, not this cancellable HTTP/1 path.

Tested

Current-main refresh (2026-11-03), head 438821252fc1fd8c2f9c82d57bb65c57a4300d8b. Rebased as three topic commits onto 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24, without merge commits. #11586 is now merged at db0f0c4d44d, so SSL callbacks are supplied by main and there is no open parent dependency. The only conflict was the debt file: retained main's TLS/context-option and pool-statistics text, added the HTTP/1 deadline/gzip limitations, and kept the gzip item in the Functional section. Main's updated generic callback checks are preserved.

The production transport/header/export/CMake patch and GuestHttp2Transport.cpp have identical stable patch IDs before and after the rebase (462dbc9554d2ee99d4166dfa89a04f04a8e3ccf2). The later Host-header and CONNECT-test commits are unchanged in the range-diff.

Fresh Linux Release: main passes its 9 guest_http2* groups; the refreshed branch passes all 10 guest_http2* groups plus guest_memory_pool_stats (11/11, zero skips). This includes HTTP/1 framing/upload/deadline/Host cases and the existing HTTP/2 transport, SSL/redirect callbacks, roots and teardown checks. The candidate source stays clean and five loaded-library hashes remain unchanged throughout the run. Conventions and whitespace checks pass.

Current source pins, range-diff, patch-identity comparison, build and verbose test logs — SHA-256 c0d3eaee77d2d9950e5f7a872a88aa37cf0f5cfd79467c4e15fb2257148c8ac5.

Earlier Windows, title and negative-control results follow with their original revisions. No new Windows or title run is claimed for this refresh.

Test review update, head 0b9da5dc5a84: removes only the assertion that sending an unimplemented CONNECT request must throw, as requested by oneandonlydean. Child creation, deletion/invalid-handle checks and production CONNECT refusal remain. The revised guest_http2_tests executable was rebuilt in an isolated worktree and passed three consecutive Linux Release runs against the immutable raw libraries built from parent 88ad9dabd393; ldd and library hashes were recorded. No production source changed. Full-suite and independent Windows results below refer to their explicitly named earlier heads; no new Windows execution is claimed for this test-only revision.

Exact head 88ad9dabd393994eab72f4d2949969c570031402, Linux 7.2.11, Ryzen 9 7950X, GCC 16.2.1 Release, independently rebuilt production libSceHttp2 and selected test executables.

  • Ten guest_http2* groups plus guest_memory_pool_stats, repeated three times: 33 passes, zero skips. Includes HTTP/1.0 and HTTP/1.1 over TLS/plain HTTP, framing, uploads, redirects/certificate callbacks, buffered deadlines, cancellation, roots, HTTP/2 transport and teardown.
  • New regression sets template Host, overrides it on a request and requires exactly one wire Host with the overridden value in five existing HTTP/1 transport modes. It fails on the integrated pre-fix library (HTTP1 exactly one overridden host header); rebuilding only libSceHttp2 passes with the byte-identical frozen test executable SHA-256 5587ee0ca05d85f776eb0775029214ebdd338549036e2183fccae04755ab37fb.
  • After committing/rebuilding the final head, all 33 repeated checks, public_headers, conventions against main b28bb7721777 and whitespace checks pass. Local merge-tree checks against that main and the actual updated parent are clean.

Exact pins, source patches, negative/frozen-positive logs, build and repeated-test logs/JUnit, SHA-256 15f25922fd85c6dc03e2a44b4e35d2243f07cd610d5c99b946636bde470de9a8. The bundle retains the failed local preparation attempt and corrected build receipt.

B-Howell independently qualified this exact head on Windows 11 Pro 26300 with WinLibs GCC15.2.0r7/UCRT Release: 12 HTTP2/statistics groups each pass three runs (36 passes, zero skips), including the HTTP/1 Host regression. Public headers/conventions pass; the same head passes 11 groups three times (33 passes) on Ubuntu22.04/WSL2 GCC11.4.0. Their unchanged-test control fails with parent Transport.cpp and passes after restoring this head; additional five-mode probes confirm template, request-replacement and appended Host each serialize exactly one effective field. These are their independently reported runs. Historical Windows qualifications keep their earlier pins. FAR PPSA03766 reaches the underwater tutorial with #11586 and historical #11611 7fcc24a04607 in the current-main comparison; it is not a native qualification of the new Host fix. No new console, GPU, audio, extended gameplay or performance claim.

Independent Windows validation from B-Howell covers exact head 438821252f against separately built main 04a9eb4fa2: Windows 11 Pro 26300, Ryzen 7 7800X3D, WinLibs GCC 15.2.0 r7 UCRT, Release. Main's ten HTTP2 groups and the head's twelve HTTP2/pool-stat groups each pass three runs, with no head skips. Restoring main's three production files while retaining this head's tests fails the HTTP1 group in all three runs; the remaining eleven groups pass. Restoring/rebuilding the head passes all twelve. These are the contributor's loopback results, not an author-run Windows or real-server/title test.

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 (#11586 and #11575 merged)
  • Fixes: none
  • Unblocks: PPSA03766 #10445; PPSA06652 #9639 (HTTP/1 transport stop only, historical TLS failure remains)
  • GPUs tested: n/a
  • AI-assisted: yes (Codex)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5025764260 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11611). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-26T22:43:31Z. --- ### What Adds synchronous HTTP/1.0 and HTTP/1.1 requests to `libSceHttp2` over HTTP or TLS, using the existing nonblocking DNS/socket/TLS machinery and the shared `libSceHttp` status parser. Version 3 remains HTTPS with ALPN h2. Supports uploads, fixed-length/chunked/close-delimited responses, raw HTTP1 headers, inherited settings, redirect and certificate callbacks, early final responses, and existing abort/deletion/deadline handling. Malformed and unsupported framing throws; the console ABI/error-mapping gaps remain documented. Based on main `04a9eb4fa2877eb6e40bf2c83adf972e40d89b24`, which already includes merged SSL-callback #11586 and redirect #11575. This branch is now only three HTTP/1.x topic commits on that main, without merge commits. Keeps main's #11627 Host-header support. HTTP/1 uses the effective template/request Host override once, instead of adding both the URL Host and a second custom Host. Main's HTTP/2 `HostAuthority` regression and this branch's HTTP/1 framing/deadline/cancellation fixtures are retained. HTTP/1 gzip inflation remains unsupported. With inflation disabled, tests retain raw compressed bytes and wire lengths; enabled identity responses and bodyless HEAD remain covered. Tests do not require unsupported enabled HTTP/1 gzip inflation to throw. Peer #9834 implements a different library, not this cancellable HTTP/1 path. ### Tested **Current-main refresh (2026-11-03), head `438821252fc1fd8c2f9c82d57bb65c57a4300d8b`.** Rebased as three topic commits onto `04a9eb4fa2877eb6e40bf2c83adf972e40d89b24`, without merge commits. #11586 is now merged at `db0f0c4d44d`, so SSL callbacks are supplied by main and there is no open parent dependency. The only conflict was the debt file: retained main's TLS/context-option and pool-statistics text, added the HTTP/1 deadline/gzip limitations, and kept the gzip item in the Functional section. Main's updated generic callback checks are preserved. The production transport/header/export/CMake patch and `GuestHttp2Transport.cpp` have identical stable patch IDs before and after the rebase (`462dbc9554d2ee99d4166dfa89a04f04a8e3ccf2`). The later Host-header and CONNECT-test commits are unchanged in the range-diff. Fresh Linux Release: main passes its 9 `guest_http2*` groups; the refreshed branch passes all 10 `guest_http2*` groups plus `guest_memory_pool_stats` (**11/11**, zero skips). This includes HTTP/1 framing/upload/deadline/Host cases and the existing HTTP/2 transport, SSL/redirect callbacks, roots and teardown checks. The candidate source stays clean and five loaded-library hashes remain unchanged throughout the run. Conventions and whitespace checks pass. [Current source pins, range-diff, patch-identity comparison, build and verbose test logs](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr11611-http1-43882125-main04a9-20261103.tar.gz) — SHA-256 `c0d3eaee77d2d9950e5f7a872a88aa37cf0f5cfd79467c4e15fb2257148c8ac5`. Earlier Windows, title and negative-control results follow with their original revisions. No new Windows or title run is claimed for this refresh. Test review update, head `0b9da5dc5a84`: removes only the assertion that sending an unimplemented CONNECT request must throw, as requested by oneandonlydean. Child creation, deletion/invalid-handle checks and production CONNECT refusal remain. The revised `guest_http2_tests` executable was rebuilt in an isolated worktree and passed three consecutive Linux Release runs against the immutable raw libraries built from parent `88ad9dabd393`; `ldd` and library hashes were recorded. No production source changed. Full-suite and independent Windows results below refer to their explicitly named earlier heads; no new Windows execution is claimed for this test-only revision. Exact head `88ad9dabd393994eab72f4d2949969c570031402`, Linux 7.2.11, Ryzen 9 7950X, GCC 16.2.1 Release, independently rebuilt production libSceHttp2 and selected test executables. - Ten `guest_http2*` groups plus `guest_memory_pool_stats`, repeated three times: 33 passes, zero skips. Includes HTTP/1.0 and HTTP/1.1 over TLS/plain HTTP, framing, uploads, redirects/certificate callbacks, buffered deadlines, cancellation, roots, HTTP/2 transport and teardown. - New regression sets template Host, overrides it on a request and requires exactly one wire Host with the overridden value in five existing HTTP/1 transport modes. It fails on the integrated pre-fix library (`HTTP1 exactly one overridden host header`); rebuilding only libSceHttp2 passes with the byte-identical frozen test executable SHA-256 `5587ee0ca05d85f776eb0775029214ebdd338549036e2183fccae04755ab37fb`. - After committing/rebuilding the final head, all 33 repeated checks, `public_headers`, conventions against main `b28bb7721777` and whitespace checks pass. Local merge-tree checks against that main and the actual updated parent are clean. [Exact pins, source patches, negative/frozen-positive logs, build and repeated-test logs/JUnit](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr11611-mainb28bb-host88ad9dab-linux-20261102.tar.gz), SHA-256 `15f25922fd85c6dc03e2a44b4e35d2243f07cd610d5c99b946636bde470de9a8`. The bundle retains the failed local preparation attempt and corrected build receipt. [B-Howell independently qualified this exact head on Windows 11 Pro 26300](https://github.com/boykopovar/AnyPS5/pull/11611#issuecomment-6583618529) with WinLibs GCC15.2.0r7/UCRT Release: 12 HTTP2/statistics groups each pass three runs (36 passes, zero skips), including the HTTP/1 Host regression. Public headers/conventions pass; the same head passes 11 groups three times (33 passes) on Ubuntu22.04/WSL2 GCC11.4.0. Their unchanged-test control fails with parent Transport.cpp and passes after restoring this head; additional five-mode probes confirm template, request-replacement and appended Host each serialize exactly one effective field. These are their independently reported runs. Historical Windows qualifications keep their earlier pins. FAR PPSA03766 reaches the underwater tutorial with #11586 and historical #11611 `7fcc24a04607` in the [current-main comparison](https://github.com/boykopovar/AnyPS5/pull/14266#issuecomment-6583048034); it is not a native qualification of the new Host fix. No new console, GPU, audio, extended gameplay or performance claim. Independent [Windows validation from B-Howell](https://github.com/boykopovar/AnyPS5/pull/11611#issuecomment-6617340946) covers exact head `438821252f` against separately built main `04a9eb4fa2`: Windows 11 Pro 26300, Ryzen 7 7800X3D, WinLibs GCC 15.2.0 r7 UCRT, Release. Main's ten HTTP2 groups and the head's twelve HTTP2/pool-stat groups each pass three runs, with no head skips. Restoring main's three production files while retaining this head's tests fails the HTTP1 group in all three runs; the remaining eleven groups pass. Restoring/rebuilding the head passes all twelve. These are the contributor's loopback results, not an author-run Windows or real-server/title test. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### 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: <!-- #PR, or none --> none (#11586 and #11575 merged) - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> PPSA03766 #10445; PPSA06652 #9639 (HTTP/1 transport stop only, historical TLS failure remains) - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> n/a - [x] AI-assisted: <!-- yes / no --> yes (Codex)
XairRrR commented 2026-10-29 06:45:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T06:45:44Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The HTTP/1.x transport builds and passes all ten guest_http2* groups, both at the head and merged onto main with the conflict resolved locally, and the negative control fails as it should. The branch still conflicts with main in docs/dev/debt/libSceHttp2.md, and that conflict is what blocks it.

What I ran

  • Head: fc5defa1c0ad8e98b3dc7dcdae52544939e6f7ef
  • main: 2960e9a6e7e1fc99c4ed180c71495b5eb83464c7 (the conflict is the same on the newer main f734bb8a9ea4e50e32f79cd99c579c4b452743c9, which changes nothing under libSceHttp2, libSceHttp, libSceNet or libSceSsl)
  • Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, a clean worktree
git fetch origin main pull/11611/head:refs/review/11611
git checkout --detach origin/main
git merge --no-ff --no-edit refs/review/11611        # conflict: docs/dev/debt/libSceHttp2.md
git merge --abort && git checkout --detach refs/review/11611

git diff --check origin/main...refs/review/11611
python3 tools/check_conventions.py --base origin/main
cmake --build build -j10 --target libSceHttp2 guest_http2_tests guest_http2_cookie_tests guest_http2_options_tests guest_http2_transport_tests
ctest --test-dir build -R '^guest_http2' -j4 --output-on-failure

# negative control: production files back to 6513822739 (the #11586 tip inside this branch), this PR's tests kept
git checkout 6513822739 -- core/libs/prx/libSceHttp2/{Export.cpp,Transport.cpp,Transport.hpp,include/Http2.hpp,CMakeLists.txt}
cmake --build build -j10 --target libSceHttp2 guest_http2_tests guest_http2_cookie_tests guest_http2_options_tests guest_http2_transport_tests
build/tests/guest_http2_transport_tests --http1      # and --ssl-callbacks, --redirects, --early, no argument
git checkout refs/review/11611 -- core/libs/prx/libSceHttp2

# merged tree, debt-file conflict resolved locally (docs only) to test what would land
git checkout --detach origin/main && git merge --no-ff refs/review/11611 && git checkout --theirs docs/dev/debt/libSceHttp2.md && git commit
cmake --build build -j10 --target libSceHttp2 guest_http2_tests guest_http2_cookie_tests guest_http2_options_tests guest_http2_transport_tests
ctest --test-dir build -R '^guest_http2' -j4 --output-on-failure
cmake --build build -j10 --target libs

Results

Check Result
Merge onto main Conflict in docs/dev/debt/libSceHttp2.md (only file)
git diff --check Clean
check_conventions.py All conventions checks passed.
Build at head (libSceHttp2 + 4 test executables) OK
guest_http2* at head 10/10 pass, 11.9 s total; slowest guest_http2_redirects 11.2 s
guest_http2* on merged tree 10/10 pass, 11.4 s total
libs on merged tree OK, including the NID-patched libSceHttp2.prx (OK: .../libSceHttp2.prx)
Negative control --http1 aborts on the old guard; the other modes pass
ctest at head
 1/10 Test #1827: guest_http2_teardown .............   Passed    0.01 sec
 2/10 Test #1820: guest_http2_options ..............   Passed    0.00 sec
 3/10 Test #1819: guest_http2_cookies ..............   Passed    0.00 sec
 4/10 Test #1818: guest_http2 ......................   Passed    0.00 sec
 5/10 Test #1823: guest_http2_system_roots .........   Passed    0.17 sec
 6/10 Test #1822: guest_http2_early_response .......   Passed    0.69 sec
 7/10 Test #1825: guest_http2_ssl_callbacks ........   Passed    2.02 sec
 8/10 Test #1821: guest_http2_transport ............   Passed    5.12 sec
 9/10 Test #1824: guest_http2_http1 ................   Passed    5.35 sec
10/10 Test #1826: guest_http2_redirects ............   Passed   11.15 sec

100% tests passed out of 10
ctest on merged tree
 3/10 Test #1976: guest_http2_system_roots .........   Passed    0.17 sec
 4/10 Test #1980: guest_http2_teardown .............   Passed    0.01 sec
 5/10 Test #1973: guest_http2_options ..............   Passed    0.00 sec
 6/10 Test #1972: guest_http2_cookies ..............   Passed    0.00 sec
 7/10 Test #1971: guest_http2 ......................   Passed    0.00 sec
 8/10 Test #1974: guest_http2_transport ............   Passed    5.23 sec
 9/10 Test #1977: guest_http2_http1 ................   Passed    5.48 sec
10/10 Test #1979: guest_http2_redirects ............   Passed   11.34 sec

100% tests passed out of 10
Conflict hunk
++<<<<<<< HEAD
 +- [libSceHttp2 TLS settings](...) - minimum-version selection, nonnull SSL callbacks and flags outside `0x3d` throw. [...] Host HTTP allocations are not charged to the context pool, so `sceHttp2GetMemoryPoolStats` reports a live context's pool size with zero peak and current use. PPSA01494, PPSA30839 and PPSA31162 read the three sizes for memory logging without checking the result, and stopped at startup while it threw.
++=======
 + - [libSceHttp2 request deadlines](...) - the host checks the overall deadline before buffered as well as socket reads, [...]
 + - [libSceHttp2 TLS settings](...) - minimum-version selection and flags outside `0x3d` throw. SSL callbacks use the verification adapter described below. [...] Host HTTP allocations are not charged to the context pool; `sceHttp2GetMemoryPoolStats` throws for live contexts instead of reporting zero usage.
++>>>>>>> refs/review/11611

Negative control

On main the old test sources do not compile against this branch's tests, because the typed callback declarations in include/Http2.hpp (Http2RedirectCallback, HttpsCallback) no longer accept void*. For a control that builds, I put the five libSceHttp2 production files back to 6513822739, the #11586 tip inside this branch, which is just before the HTTP/1.x commits, and kept this PR's tests:

  • guest_http2_transport_tests --http1 aborts (exit 134): sceHttp2SendRequest: HTTP/1.x transport is not implemented not implemented.
  • --ssl-callbacks, --redirects, --early and the default mode pass.

So the HTTP/1.x group depends on the new transport code. The redirect and SSL-callback groups pass without the HTTP/1.x commits, so they test the stacked #11575 and #11586 changes, not this PR's own code.

Findings

Blocking

  1. Conflict with main in docs/dev/debt/libSceHttp2.md. This confirms what oneandonlydean pointed out, and it is still present on main 2960e9a6e7 and f734bb8a9e. The conflict is on the "libSceHttp2 TLS settings" bullet (head line 35, main line 33). #11616 rewrote the end of that line (sceHttp2GetMemoryPoolStats now reports the pool size instead of throwing), and this branch rewrote its start (SSL callbacks no longer throw). Resolving with only one side either brings back the outdated "throws for live contexts" text or keeps "nonnull SSL callbacks [...] throw", which this branch makes false. Keep this branch's first sentences and new "request deadlines" bullet, plus main's sceHttp2GetMemoryPoolStats ending and the PPSA01494/PPSA30839/PPSA31162 sentence.

Non-blocking

  1. The description says the dependencies are on main; they are not. The description says #11575 and #11586 "their commits are included on main 74acfad". Both PRs are still open, and their commits (af93efe890, df94dd3ca5, 6513822739) are in this branch's diff against main. The Depends on: #11575, #11586 line is correct. The sentence should say the commits are stacked in this branch, so the PRs have to land in order (or this one replaces them). The ticked "Based on current main" box also does not hold while the branch conflicts.
  2. A chunk-size line with whitespace before ; throws. In Transport.cpp:654, the size is parsed from line.substr(0, line.find(';')) with no trimming, so a line like 1a ;ext=v fails Number(..., 16). RFC 9112 section 7.1.1 allows BWS before ; in chunk-ext. It throws instead of misbehaving, so it does not break the rules, but trimming trailing spaces and tabs from the size token before ; would accept every valid chunk line. If you keep it as is, add it to the debt entry.

Not verified

  • Windows. Other contributors posted results in the thread; I did not reproduce them.
  • Any title or real remote server. I ran only the loopback tests.
  • The private Host-header follow-up for #11627. It is not in this head.
  • Console behaviour for the documented unknowns: HTTP version and ALPN choice, redirect caching, error mappings, and reads after the deadline with data already buffered.

To get this to a good state

  1. Rebase onto current main and resolve docs/dev/debt/libSceHttp2.md keeping both edits, as described in Blocking 1.
  2. Update the stacking sentence and the checklist so they match the branch (Non-blocking 1).
  3. Optionally, accept or document whitespace before ; in chunk-size lines (Non-blocking 2).
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693848655 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11611#pullrequestreview-5693848655). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T06:45:44Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The HTTP/1.x transport builds and passes all ten `guest_http2*` groups, both at the head and merged onto `main` with the conflict resolved locally, and the negative control fails as it should. The branch still conflicts with `main` in `docs/dev/debt/libSceHttp2.md`, and that conflict is what blocks it. ## What I ran - Head: `fc5defa1c0ad8e98b3dc7dcdae52544939e6f7ef` - `main`: `2960e9a6e7e1fc99c4ed180c71495b5eb83464c7` (the conflict is the same on the newer `main` `f734bb8a9ea4e50e32f79cd99c579c4b452743c9`, which changes nothing under libSceHttp2, libSceHttp, libSceNet or libSceSsl) - Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, a clean worktree ```sh git fetch origin main pull/11611/head:refs/review/11611 git checkout --detach origin/main git merge --no-ff --no-edit refs/review/11611 # conflict: docs/dev/debt/libSceHttp2.md git merge --abort && git checkout --detach refs/review/11611 git diff --check origin/main...refs/review/11611 python3 tools/check_conventions.py --base origin/main cmake --build build -j10 --target libSceHttp2 guest_http2_tests guest_http2_cookie_tests guest_http2_options_tests guest_http2_transport_tests ctest --test-dir build -R '^guest_http2' -j4 --output-on-failure # negative control: production files back to 6513822739 (the #11586 tip inside this branch), this PR's tests kept git checkout 6513822739 -- core/libs/prx/libSceHttp2/{Export.cpp,Transport.cpp,Transport.hpp,include/Http2.hpp,CMakeLists.txt} cmake --build build -j10 --target libSceHttp2 guest_http2_tests guest_http2_cookie_tests guest_http2_options_tests guest_http2_transport_tests build/tests/guest_http2_transport_tests --http1 # and --ssl-callbacks, --redirects, --early, no argument git checkout refs/review/11611 -- core/libs/prx/libSceHttp2 # merged tree, debt-file conflict resolved locally (docs only) to test what would land git checkout --detach origin/main && git merge --no-ff refs/review/11611 && git checkout --theirs docs/dev/debt/libSceHttp2.md && git commit cmake --build build -j10 --target libSceHttp2 guest_http2_tests guest_http2_cookie_tests guest_http2_options_tests guest_http2_transport_tests ctest --test-dir build -R '^guest_http2' -j4 --output-on-failure cmake --build build -j10 --target libs ``` ## Results | Check | Result | |---|---| | Merge onto `main` | **Conflict** in `docs/dev/debt/libSceHttp2.md` (only file) | | `git diff --check` | Clean | | `check_conventions.py` | `All conventions checks passed.` | | Build at head (libSceHttp2 + 4 test executables) | OK | | `guest_http2*` at head | 10/10 pass, 11.9 s total; slowest `guest_http2_redirects` 11.2 s | | `guest_http2*` on merged tree | 10/10 pass, 11.4 s total | | `libs` on merged tree | OK, including the NID-patched `libSceHttp2.prx` (`OK: .../libSceHttp2.prx`) | | Negative control | `--http1` aborts on the old guard; the other modes pass | <details><summary>ctest at head</summary> ``` 1/10 Test #1827: guest_http2_teardown ............. Passed 0.01 sec 2/10 Test #1820: guest_http2_options .............. Passed 0.00 sec 3/10 Test #1819: guest_http2_cookies .............. Passed 0.00 sec 4/10 Test #1818: guest_http2 ...................... Passed 0.00 sec 5/10 Test #1823: guest_http2_system_roots ......... Passed 0.17 sec 6/10 Test #1822: guest_http2_early_response ....... Passed 0.69 sec 7/10 Test #1825: guest_http2_ssl_callbacks ........ Passed 2.02 sec 8/10 Test #1821: guest_http2_transport ............ Passed 5.12 sec 9/10 Test #1824: guest_http2_http1 ................ Passed 5.35 sec 10/10 Test #1826: guest_http2_redirects ............ Passed 11.15 sec 100% tests passed out of 10 ``` </details> <details><summary>ctest on merged tree</summary> ``` 3/10 Test #1976: guest_http2_system_roots ......... Passed 0.17 sec 4/10 Test #1980: guest_http2_teardown ............. Passed 0.01 sec 5/10 Test #1973: guest_http2_options .............. Passed 0.00 sec 6/10 Test #1972: guest_http2_cookies .............. Passed 0.00 sec 7/10 Test #1971: guest_http2 ...................... Passed 0.00 sec 8/10 Test #1974: guest_http2_transport ............ Passed 5.23 sec 9/10 Test #1977: guest_http2_http1 ................ Passed 5.48 sec 10/10 Test #1979: guest_http2_redirects ............ Passed 11.34 sec 100% tests passed out of 10 ``` </details> <details><summary>Conflict hunk</summary> ``` ++<<<<<<< HEAD +- [libSceHttp2 TLS settings](...) - minimum-version selection, nonnull SSL callbacks and flags outside `0x3d` throw. [...] Host HTTP allocations are not charged to the context pool, so `sceHttp2GetMemoryPoolStats` reports a live context's pool size with zero peak and current use. PPSA01494, PPSA30839 and PPSA31162 read the three sizes for memory logging without checking the result, and stopped at startup while it threw. ++======= + - [libSceHttp2 request deadlines](...) - the host checks the overall deadline before buffered as well as socket reads, [...] + - [libSceHttp2 TLS settings](...) - minimum-version selection and flags outside `0x3d` throw. SSL callbacks use the verification adapter described below. [...] Host HTTP allocations are not charged to the context pool; `sceHttp2GetMemoryPoolStats` throws for live contexts instead of reporting zero usage. ++>>>>>>> refs/review/11611 ``` </details> ## Negative control On `main` the old test sources do not compile against this branch's tests, because the typed callback declarations in `include/Http2.hpp` (`Http2RedirectCallback`, `HttpsCallback`) no longer accept `void*`. For a control that builds, I put the five libSceHttp2 production files back to `6513822739`, the #11586 tip inside this branch, which is just before the HTTP/1.x commits, and kept this PR's tests: - `guest_http2_transport_tests --http1` aborts (exit 134): `sceHttp2SendRequest: HTTP/1.x transport is not implemented not implemented`. - `--ssl-callbacks`, `--redirects`, `--early` and the default mode pass. So the HTTP/1.x group depends on the new transport code. The redirect and SSL-callback groups pass without the HTTP/1.x commits, so they test the stacked #11575 and #11586 changes, not this PR's own code. ## Findings ### Blocking 1. **Conflict with `main` in `docs/dev/debt/libSceHttp2.md`.** This confirms what [oneandonlydean pointed out](https://github.com/boykopovar/AnyPS5/pull/11611#issuecomment-6472417438), and it is still present on `main` `2960e9a6e7` and `f734bb8a9e`. The conflict is on the "libSceHttp2 TLS settings" bullet ([head line 35](https://github.com/boykopovar/AnyPS5/blob/fc5defa1c0ad8e98b3dc7dcdae52544939e6f7ef/docs/dev/debt/libSceHttp2.md#L35-L35), [`main` line 33](https://github.com/boykopovar/AnyPS5/blob/2960e9a6e7e1fc99c4ed180c71495b5eb83464c7/docs/dev/debt/libSceHttp2.md#L33-L33)). #11616 rewrote the end of that line (`sceHttp2GetMemoryPoolStats` now reports the pool size instead of throwing), and this branch rewrote its start (SSL callbacks no longer throw). Resolving with only one side either brings back the outdated "throws for live contexts" text or keeps "nonnull SSL callbacks [...] throw", which this branch makes false. Keep this branch's first sentences and new "request deadlines" bullet, plus `main`'s `sceHttp2GetMemoryPoolStats` ending and the PPSA01494/PPSA30839/PPSA31162 sentence. ### Non-blocking 1. **The description says the dependencies are on `main`; they are not.** The description says #11575 and #11586 "their commits are included on main `74acfad`". Both PRs are still open, and their commits (`af93efe890`, `df94dd3ca5`, `6513822739`) are in this branch's diff against `main`. The `Depends on: #11575, #11586` line is correct. The sentence should say the commits are stacked in this branch, so the PRs have to land in order (or this one replaces them). The ticked "Based on current `main`" box also does not hold while the branch conflicts. 2. **A chunk-size line with whitespace before `;` throws.** In [Transport.cpp:654](https://github.com/boykopovar/AnyPS5/blob/fc5defa1c0ad8e98b3dc7dcdae52544939e6f7ef/core/libs/prx/libSceHttp2/Transport.cpp#L654-L654), the size is parsed from `line.substr(0, line.find(';'))` with no trimming, so a line like `1a ;ext=v` fails `Number(..., 16)`. [RFC 9112 section 7.1.1](https://www.rfc-editor.org/rfc/rfc9112.html#section-7.1.1) allows `BWS` before `;` in `chunk-ext`. It throws instead of misbehaving, so it does not break the rules, but trimming trailing spaces and tabs from the size token before `;` would accept every valid chunk line. If you keep it as is, add it to the debt entry. ## Not verified - Windows. Other contributors posted results in the thread; I did not reproduce them. - Any title or real remote server. I ran only the loopback tests. - The private Host-header follow-up for #11627. It is not in this head. - Console behaviour for the documented unknowns: HTTP version and ALPN choice, redirect caching, error mappings, and reads after the deadline with data already buffered. ## To get this to a good state 1. Rebase onto current `main` and resolve `docs/dev/debt/libSceHttp2.md` keeping both edits, as described in Blocking 1. 2. Update the stacking sentence and the checklist so they match the branch (Non-blocking 1). 3. Optionally, accept or document whitespace before `;` in chunk-size lines (Non-blocking 2).
XairRrR commented 2026-10-29 11:25:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T11:25:49Z.

Review: APPROVED


Re-checked — approved

The new head is a maintainer merge of main that resolves the docs/dev/debt/libSceHttp2.md conflict, the only blocking finding from my last review; the branch now merges cleanly onto current main, builds, and passes all ten guest_http2* groups.

What changed since my last review

  • One new commit, 1822e724ec ("Merge branch 'main' into feat/http2-http1-transport"), on top of fc5defa1c0 (the head I reviewed last time). It merges main at 578b8311ac.
  • git show --remerge-diff on that commit shows only one hand resolution, in docs/dev/debt/libSceHttp2.md. Every other change to the PR's files comes from main: the sceHttp2GetMemoryPoolStats change from #11616 and the sceHttp2Init(…, 0) change from #11730, in Export.cpp and GuestHttp2.cpp, which merged without conflict. Nothing on the PR's side of the transport, its tests or the build files changed.
  • No author replies since my last review. Two maintainer comments say the conflict was resolved with maintainer edits. The description was not changed.

What I ran

  • Head: 1822e724eceaf37fae776510f7d4fbe559ee871f
  • main: ba5b5330b37724bca4b99f30faab504653635a04
  • Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, a clean worktree
git fetch origin main pull/11611/head:refs/review/11611
git show --remerge-diff refs/review/11611
git checkout --detach origin/main
git merge --no-ff --no-edit refs/review/11611          # clean
git diff --check origin/main...refs/review/11611
python3 tools/check_conventions.py --base origin/main
cmake --build build -j10 --target libSceHttp2 guest_http2_tests guest_http2_cookie_tests guest_http2_options_tests guest_http2_transport_tests
ctest --test-dir build -R '^guest_http2' -j4 --output-on-failure
cmake --build build -j10 --target libs
Check Result
Merge onto main ba5b5330b3 Clean
git diff --check Clean
check_conventions.py All conventions checks passed.
Build (libSceHttp2 + 4 test executables) OK
guest_http2* on merged tree 10/10 pass, 11.45 s total; slowest guest_http2_redirects 11.41 s
libs on merged tree OK, including the NID-patched libSceHttp2.prx
ctest on merged tree
 3/10 Test #1984: guest_http2_system_roots .........   Passed    0.18 sec
 4/10 Test #1988: guest_http2_teardown .............   Passed    0.02 sec
 5/10 Test #1981: guest_http2_options ..............   Passed    0.01 sec
 6/10 Test #1980: guest_http2_cookies ..............   Passed    0.01 sec
 7/10 Test #1979: guest_http2 ......................   Passed    0.01 sec
 8/10 Test #1982: guest_http2_transport ............   Passed    5.26 sec
 9/10 Test #1985: guest_http2_http1 ................   Passed    5.53 sec
10/10 Test #1987: guest_http2_redirects ............   Passed   11.41 sec

100% tests passed out of 10

Total Test time (real) =  11.45 sec

I did not repeat the negative control. The PR's own tests and production code are unchanged since fc5defa1c0, where --http1 aborted with the pre-HTTP/1.x transport restored.

Previous findings

  • Blocking 1, debt-file conflict: Resolved. The resolved TLS settings bullet keeps this branch's "request deadlines" bullet and its "SSL callbacks use the verification adapter" wording. It also keeps main's pool-stats ending (pool size with zero peak and current use) and the PPSA01494/PPSA30839/PPSA31162 sentence. The outdated "throws for live contexts" text is gone. This matches what I asked for, and what oneandonlydean asked for in the thread.
  • Non-blocking 1, stacking sentence: Still open. The description still says the #11575 and #11586 commits "are included on main 74acfad". Both PRs are still open, and their commits are still in this branch's diff against main. The "Based on current main" box now holds.
  • Non-blocking 2, whitespace before ; in chunk-size lines: Still open. Transport.cpp:654 is unchanged. A line with BWS before a chunk extension still throws instead of misparsing, so this stays non-blocking.

New findings

Blocking

None.

Non-blocking

None. The merge commit's only hand edit is the debt-file resolution above.

Not verified

  • Windows, any title, and real remote servers. I ran only the loopback tests.
  • The effective-Host follow-up that oneandonlydean asked for once #11627 lands. It is not in this head, and #11627 is still open.
  • Console behaviour for the unknowns listed in the debt file.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5696907572 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11611#pullrequestreview-5696907572). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T11:25:49Z. **Review:** APPROVED --- # Re-checked — approved The new head is a maintainer merge of `main` that resolves the `docs/dev/debt/libSceHttp2.md` conflict, the only blocking finding from my last review; the branch now merges cleanly onto current `main`, builds, and passes all ten `guest_http2*` groups. ## What changed since my last review - One new commit, `1822e724ec` ("Merge branch 'main' into feat/http2-http1-transport"), on top of `fc5defa1c0` (the head I reviewed last time). It merges `main` at `578b8311ac`. - `git show --remerge-diff` on that commit shows only one hand resolution, in `docs/dev/debt/libSceHttp2.md`. Every other change to the PR's files comes from `main`: the `sceHttp2GetMemoryPoolStats` change from #11616 and the `sceHttp2Init(…, 0)` change from #11730, in `Export.cpp` and `GuestHttp2.cpp`, which merged without conflict. Nothing on the PR's side of the transport, its tests or the build files changed. - No author replies since my last review. Two maintainer comments say the conflict was resolved with maintainer edits. The description was not changed. ## What I ran - Head: `1822e724eceaf37fae776510f7d4fbe559ee871f` - `main`: `ba5b5330b37724bca4b99f30faab504653635a04` - Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, a clean worktree ```sh git fetch origin main pull/11611/head:refs/review/11611 git show --remerge-diff refs/review/11611 git checkout --detach origin/main git merge --no-ff --no-edit refs/review/11611 # clean git diff --check origin/main...refs/review/11611 python3 tools/check_conventions.py --base origin/main cmake --build build -j10 --target libSceHttp2 guest_http2_tests guest_http2_cookie_tests guest_http2_options_tests guest_http2_transport_tests ctest --test-dir build -R '^guest_http2' -j4 --output-on-failure cmake --build build -j10 --target libs ``` | Check | Result | |---|---| | Merge onto `main` `ba5b5330b3` | Clean | | `git diff --check` | Clean | | `check_conventions.py` | `All conventions checks passed.` | | Build (libSceHttp2 + 4 test executables) | OK | | `guest_http2*` on merged tree | 10/10 pass, 11.45 s total; slowest `guest_http2_redirects` 11.41 s | | `libs` on merged tree | OK, including the NID-patched `libSceHttp2.prx` | <details><summary>ctest on merged tree</summary> ``` 3/10 Test #1984: guest_http2_system_roots ......... Passed 0.18 sec 4/10 Test #1988: guest_http2_teardown ............. Passed 0.02 sec 5/10 Test #1981: guest_http2_options .............. Passed 0.01 sec 6/10 Test #1980: guest_http2_cookies .............. Passed 0.01 sec 7/10 Test #1979: guest_http2 ...................... Passed 0.01 sec 8/10 Test #1982: guest_http2_transport ............ Passed 5.26 sec 9/10 Test #1985: guest_http2_http1 ................ Passed 5.53 sec 10/10 Test #1987: guest_http2_redirects ............ Passed 11.41 sec 100% tests passed out of 10 Total Test time (real) = 11.45 sec ``` </details> I did not repeat the negative control. The PR's own tests and production code are unchanged since `fc5defa1c0`, where `--http1` aborted with the pre-HTTP/1.x transport restored. ## Previous findings - **Blocking 1, debt-file conflict: Resolved.** The resolved [TLS settings bullet](https://github.com/boykopovar/AnyPS5/blob/1822e724eceaf37fae776510f7d4fbe559ee871f/docs/dev/debt/libSceHttp2.md#L34-L35) keeps this branch's "request deadlines" bullet and its "SSL callbacks use the verification adapter" wording. It also keeps `main`'s pool-stats ending (pool size with zero peak and current use) and the PPSA01494/PPSA30839/PPSA31162 sentence. The outdated "throws for live contexts" text is gone. This matches what I asked for, and what oneandonlydean asked for in the thread. - **Non-blocking 1, stacking sentence: Still open.** The description still says the #11575 and #11586 commits "are included on main `74acfad`". Both PRs are still open, and their commits are still in this branch's diff against `main`. The "Based on current `main`" box now holds. - **Non-blocking 2, whitespace before `;` in chunk-size lines: Still open.** [Transport.cpp:654](https://github.com/boykopovar/AnyPS5/blob/1822e724eceaf37fae776510f7d4fbe559ee871f/core/libs/prx/libSceHttp2/Transport.cpp#L654-L654) is unchanged. A line with `BWS` before a chunk extension still throws instead of misparsing, so this stays non-blocking. ## New findings ### Blocking None. ### Non-blocking None. The merge commit's only hand edit is the debt-file resolution above. ## Not verified - Windows, any title, and real remote servers. I ran only the loopback tests. - The effective-Host follow-up that oneandonlydean asked for once #11627 lands. It is not in this head, and #11627 is still open. - Console behaviour for the unknowns listed in the debt file.
XairRrR commented 2026-10-29 12:06:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T12:06:33Z.

Review: APPROVED


Re-checked — approved

Since my last review, the branch has a clean merge of main and a one-line debt-file fix: the stale "default trust" bullet is gone. The branch merges cleanly onto current main, builds, and passes all ten guest_http2* groups.

What changed since my last review

  • f73e0e3f88 merges main at ba5b5330b3 into 1822e724ec, the head I approved. git show --remerge-diff f73e0e3f88 is empty, so the merge needed no hand resolution. None of the PR's transport code, tests or build files changed. git diff 1822e724ec 326ca980d1 shows no change to core/libs/prx/libSceHttp2/ or the HTTP2 tests.
  • 326ca980d1 deletes the libSceHttp2 default trust bullet from docs/dev/debt/libSceHttp2.md. On main that bullet still says HTTPS "uses only authorities explicitly loaded into the caller's libSceSsl context" (main, line 42). Since #11145 was merged, the transport also trusts the system CA list (Transport.cpp:455), and the Default TLS trust bullet already describes this. Removing the old bullet takes out a contradiction that is already on main, so the change is correct.
  • No new comments since my last review, and the description was last edited on 2026-10-28.

What I ran

  • Head: 326ca980d17e11d405d98c4c4b13c61a1121a19d
  • main: 5454cd2e455994d992aca39335ce60507eeda1eb
  • Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, a clean worktree
git fetch origin main pull/11611/head:refs/review/11611
git show --remerge-diff f73e0e3f88
git diff 1822e724ec refs/review/11611 --stat
git checkout --detach origin/main
git merge --no-ff --no-edit refs/review/11611          # clean
git diff --check origin/main...refs/review/11611
python3 tools/check_conventions.py --base origin/main
cmake --build build -j10 --target libSceHttp2 guest_http2_tests guest_http2_cookie_tests guest_http2_options_tests guest_http2_transport_tests
ctest --test-dir build -R '^guest_http2' -j4 --output-on-failure
cmake --build build -j10 --target libs
Check Result
Merge onto main 5454cd2e45 Clean
git diff --check Clean
check_conventions.py All conventions checks passed.
Build (libSceHttp2 + 4 test executables) OK
guest_http2* on merged tree 10/10 pass, 11.43 s total; slowest guest_http2_redirects 11.40 s
libs on merged tree OK, including the NID-patched libSceHttp2.prx
ctest on merged tree
 3/10 Test #1987: guest_http2_system_roots .........   Passed    0.18 sec
 4/10 Test #1991: guest_http2_teardown .............   Passed    0.01 sec
 5/10 Test #1984: guest_http2_options ..............   Passed    0.01 sec
 6/10 Test #1982: guest_http2 ......................   Passed    0.01 sec
 7/10 Test #1983: guest_http2_cookies ..............   Passed    0.01 sec
 8/10 Test #1985: guest_http2_transport ............   Passed    5.38 sec
 9/10 Test #1988: guest_http2_http1 ................   Passed    5.51 sec
10/10 Test #1990: guest_http2_redirects ............   Passed   11.40 sec

100% tests passed out of 10

Total Test time (real) =  11.43 sec

I did not repeat the negative control. The PR's tests and production code have not changed since fc5defa1c0, where --http1 aborted once the pre-HTTP/1.x transport was restored.

Previous findings

  • Non-blocking 1, stacking sentence: Still open. The description still says the #11575 and #11586 commits "are included on main 74acfad". Both PRs are still open.
  • Non-blocking 2, whitespace before ; in chunk-size lines: Still open. The chunk-size parsing in Transport.cpp is unchanged. A size line with whitespace before the ; of a chunk extension still throws; it is not misparsed.

New findings

Blocking

None.

Non-blocking

  • The description does not mention the debt-bullet removal in 326ca980d1. That bullet came from main, not from this PR's topic. A line under What saying the stale default-trust entry was dropped because #11145 superseded it would explain it to maintainers. This does not block the PR.

Not verified

  • Windows, any title, and real remote servers. I ran only the loopback tests.
  • The effective-Host follow-up that oneandonlydean asked for. It waits on #11627, which is still open.
  • Console behaviour for the unknowns listed in the debt file.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5697381046 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11611#pullrequestreview-5697381046). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T12:06:33Z. **Review:** APPROVED --- # Re-checked — approved Since my last review, the branch has a clean merge of `main` and a one-line debt-file fix: the stale "default trust" bullet is gone. The branch merges cleanly onto current `main`, builds, and passes all ten `guest_http2*` groups. ## What changed since my last review - `f73e0e3f88` merges `main` at `ba5b5330b3` into `1822e724ec`, the head I approved. `git show --remerge-diff f73e0e3f88` is empty, so the merge needed no hand resolution. None of the PR's transport code, tests or build files changed. `git diff 1822e724ec 326ca980d1` shows no change to `core/libs/prx/libSceHttp2/` or the HTTP2 tests. - `326ca980d1` deletes the `libSceHttp2 default trust` bullet from `docs/dev/debt/libSceHttp2.md`. On `main` that bullet still says HTTPS "uses only authorities explicitly loaded into the caller's libSceSsl context" ([main, line 42](https://github.com/boykopovar/AnyPS5/blob/5454cd2e455994d992aca39335ce60507eeda1eb/docs/dev/debt/libSceHttp2.md#L42-L42)). Since #11145 was merged, the transport also trusts the system CA list ([Transport.cpp:455](https://github.com/boykopovar/AnyPS5/blob/326ca980d17e11d405d98c4c4b13c61a1121a19d/core/libs/prx/libSceHttp2/Transport.cpp#L455-L455)), and the [Default TLS trust bullet](https://github.com/boykopovar/AnyPS5/blob/326ca980d17e11d405d98c4c4b13c61a1121a19d/docs/dev/debt/libSceHttp2.md#L29-L29) already describes this. Removing the old bullet takes out a contradiction that is already on `main`, so the change is correct. - No new comments since my last review, and the description was last edited on 2026-10-28. ## What I ran - Head: `326ca980d17e11d405d98c4c4b13c61a1121a19d` - `main`: `5454cd2e455994d992aca39335ce60507eeda1eb` - Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, a clean worktree ```sh git fetch origin main pull/11611/head:refs/review/11611 git show --remerge-diff f73e0e3f88 git diff 1822e724ec refs/review/11611 --stat git checkout --detach origin/main git merge --no-ff --no-edit refs/review/11611 # clean git diff --check origin/main...refs/review/11611 python3 tools/check_conventions.py --base origin/main cmake --build build -j10 --target libSceHttp2 guest_http2_tests guest_http2_cookie_tests guest_http2_options_tests guest_http2_transport_tests ctest --test-dir build -R '^guest_http2' -j4 --output-on-failure cmake --build build -j10 --target libs ``` | Check | Result | |---|---| | Merge onto `main` `5454cd2e45` | Clean | | `git diff --check` | Clean | | `check_conventions.py` | `All conventions checks passed.` | | Build (libSceHttp2 + 4 test executables) | OK | | `guest_http2*` on merged tree | 10/10 pass, 11.43 s total; slowest `guest_http2_redirects` 11.40 s | | `libs` on merged tree | OK, including the NID-patched `libSceHttp2.prx` | <details><summary>ctest on merged tree</summary> ``` 3/10 Test #1987: guest_http2_system_roots ......... Passed 0.18 sec 4/10 Test #1991: guest_http2_teardown ............. Passed 0.01 sec 5/10 Test #1984: guest_http2_options .............. Passed 0.01 sec 6/10 Test #1982: guest_http2 ...................... Passed 0.01 sec 7/10 Test #1983: guest_http2_cookies .............. Passed 0.01 sec 8/10 Test #1985: guest_http2_transport ............ Passed 5.38 sec 9/10 Test #1988: guest_http2_http1 ................ Passed 5.51 sec 10/10 Test #1990: guest_http2_redirects ............ Passed 11.40 sec 100% tests passed out of 10 Total Test time (real) = 11.43 sec ``` </details> I did not repeat the negative control. The PR's tests and production code have not changed since `fc5defa1c0`, where `--http1` aborted once the pre-HTTP/1.x transport was restored. ## Previous findings - **Non-blocking 1, stacking sentence: Still open.** The description still says the #11575 and #11586 commits "are included on main `74acfad`". Both PRs are still open. - **Non-blocking 2, whitespace before `;` in chunk-size lines: Still open.** The chunk-size parsing in [Transport.cpp](https://github.com/boykopovar/AnyPS5/blob/326ca980d17e11d405d98c4c4b13c61a1121a19d/core/libs/prx/libSceHttp2/Transport.cpp#L654-L654) is unchanged. A size line with whitespace before the `;` of a chunk extension still throws; it is not misparsed. ## New findings ### Blocking None. ### Non-blocking - The description does not mention the debt-bullet removal in `326ca980d1`. That bullet came from `main`, not from this PR's topic. A line under `What` saying the stale default-trust entry was dropped because #11145 superseded it would explain it to maintainers. This does not block the PR. ## Not verified - Windows, any title, and real remote servers. I ran only the loopback tests. - The effective-Host follow-up that oneandonlydean asked for. It waits on #11627, which is still open. - Console behaviour for the unknowns listed in the debt file.
XairRrR commented 2026-11-02 19:19:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-02T19:19:17Z.

Review: APPROVED


Re-checked — approved

Since my last review, the branch was replayed onto current main, now carries #11586's SSL-callback commit, writes exactly one effective Host field on HTTP/1.x (with a loopback regression test), and no longer requires the unimplemented CONNECT send to throw. It merges cleanly, builds, passes all ten guest_http2* groups, and the new Host assertion fails without the fix.

What changed since my last review

  • Replay onto main. #11575 was merged, and the branch was rebuilt as main plus the TLS certificate callback commit (#11586, 173968c47107) plus the HTTP/1.x transport. Compared with main, the diff now also contains the SSL callback adapter: Verify_nid_no_patch, the shared InvokeCallback that the redirect callback now uses too, guest_http2_ssl_callbacks, and the debt entry.
  • Host composition with #11627 (88ad9dabd393). SendHttp1 takes the last stored host value, or the URL authority when there is none, writes it once, and skips host in the generic header loop (Transport.cpp:668-673). This is the same selection the HTTP/2 path makes for :authority (Transport.cpp:864). Http1Transport sets a template Host, replaces it on the request, and checks that exactly one host with value request.example reaches the server in all five HTTP/1 modes. This addresses oneandonlydean's request and B-Howell's duplicate-Host probe.
  • 0b9da5dc5a84 removes only Require(Throws(... sceHttp2SendRequest(child ...))) from GuestHttp2.cpp. The CONNECT child is still created and used for the deletion and invalid-handle checks, and the production refusal (Transport.cpp:350) is still there. This addresses oneandonlydean's request.
  • Description: it now says that #11575 is merged and that #11586's commit is included.

What I ran

Head 0b9da5dc5a84ed9bc4a2e64b15ed57afe5fbaeb1, main a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8, merged tree a08ae068c0c9610ab5ef27e33d72dc4f8f83a863. Debian 13 VM (Xeon Gold 6136), GCC 14.2.0, Release, Ninja, a clean worktree.

git diff --check a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8...0b9da5dc5a84ed9bc4a2e64b15ed57afe5fbaeb1
python3 tools/check_conventions.py --base a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8
git diff 3ee4e2bc6657 0b9da5dc5a84 -- core/libs/prx
git diff 88ad9dabd393 0b9da5dc5a84
# negative control
git show 3ee4e2bc6657:core/libs/prx/libSceHttp2/Transport.cpp > core/libs/prx/libSceHttp2/Transport.cpp
ninja -C build libSceHttp2 guest_http2_transport_tests guest_http2_tests
ctest --test-dir build -R '^guest_http2_http1$' --output-on-failure
# restore
git show a08ae068c0c9610ab5ef27e33d72dc4f8f83a863:core/libs/prx/libSceHttp2/Transport.cpp > core/libs/prx/libSceHttp2/Transport.cpp
git status --porcelain
ninja -C build libSceHttp2 guest_http2_transport_tests guest_http2_tests guest_http2_cookie_tests guest_http2_options_tests
ctest --test-dir build -R '^guest_http2' -j8 --test-load 32 --output-on-failure
Check Result
Merge onto main Clean
git diff --check Clean
check_conventions.py All conventions checks passed.
Build and libs (script) OK
Selected tests (script, 779 run) No new failures or timeouts. unwrap_self also fails on main. Two main_sync_renames_* tests that fail on the baseline pass here; this PR does not touch them.
guest_http2* on merged tree 10/10 pass in 12.91 s. Slowest: guest_http2_redirects 12.75 s, guest_http2_transport 7.40 s, guest_http2_http1 6.22 s, guest_http2_ssl_callbacks 2.22 s
Vulkan validation Skipped: the PR changes no AGC, shader or VideoOut files
Negative control output
1/1 Test #2302: guest_http2_http1 ................Subprocess aborted***Exception:   0.71 sec
HTTP2: HTTP1 exactly one overridden host header

Negative control

I restored Transport.cpp from 3ee4e2bc6657, the commit just before the Host fix; it differs from the head only in the Host lines. I kept the head's tests and rebuilt. guest_http2_http1 then aborted at HTTP1 exactly one overridden host header. After restoring the merged Transport.cpp, it passed again, and git status --porcelain was empty. The test removal in 0b9da5dc5a84 needs no control.

Previous findings

  • Stacking sentence in the description: Resolved. The description now says that #11575 is merged and names #11586's commit 173968c47107 as included. That matches the history.
  • Whitespace before ; in chunk-size lines: Still open (non-blocking, unchanged). Transport.cpp:724 still passes everything before ; to Number. A size line like 8 ;ext throws instead of being misparsed, so this is safe.
  • Description silent on the default-trust bullet removal: No longer applies. After the replay, the PR no longer touches that bullet.

New findings

Blocking

None.

Non-blocking

  • The Host debt entry now describes only HTTP/2. libSceHttp2.md:43 says a guest Host header "becomes the request's :authority pseudo-header and is not sent as a Host field". On version 1/2 requests it is now sent as the single Host field. Suggest adding a clause such as "on HTTP/1.x it replaces the URL authority in the one Host field".
  • The HTTP/1.x gzip entry is in the wrong section. libSceHttp2.md:57 is under ### Additional PS5 3.20 imports (xdCloudy #9485) instead of ### Functional, and the file no longer ends with a newline. Moving the entry next to the existing gzip entry fixes both.

Not verified

  • Windows, titles and real remote servers; I ran only the loopback tests. The Windows runs at 88ad9dabd3 by B-Howell and the title runs by the author are as they reported them.
  • How the console behaves for the unknowns in the debt file: Host semantics, HTTP/1 header serialization, and the SSL callback error mappings.
  • I did not re-run a full-production negative control for the SSL-callback and HTTP/1 transport code. The callback setter's signature changed in the public header, so the tests do not compile against main's production files. Earlier controls by B-Howell and BunnyFl cover the HTTP/1 transport.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5742029478 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11611#pullrequestreview-5742029478). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-02T19:19:17Z. **Review:** APPROVED --- # Re-checked — approved Since my last review, the branch was replayed onto current `main`, now carries #11586's SSL-callback commit, writes exactly one effective `Host` field on HTTP/1.x (with a loopback regression test), and no longer requires the unimplemented CONNECT send to throw. It merges cleanly, builds, passes all ten `guest_http2*` groups, and the new Host assertion fails without the fix. ## What changed since my last review - **Replay onto `main`.** #11575 was merged, and the branch was rebuilt as `main` plus the TLS certificate callback commit (#11586, `173968c47107`) plus the HTTP/1.x transport. Compared with `main`, the diff now also contains the SSL callback adapter: `Verify_nid_no_patch`, the shared `InvokeCallback` that the redirect callback now uses too, `guest_http2_ssl_callbacks`, and the debt entry. - **Host composition with #11627** (`88ad9dabd393`). `SendHttp1` takes the last stored `host` value, or the URL authority when there is none, writes it once, and skips `host` in the generic header loop ([Transport.cpp:668-673](https://github.com/boykopovar/AnyPS5/blob/0b9da5dc5a84ed9bc4a2e64b15ed57afe5fbaeb1/core/libs/prx/libSceHttp2/Transport.cpp#L668-L673)). This is the same selection the HTTP/2 path makes for `:authority` (`Transport.cpp:864`). `Http1Transport` sets a template Host, replaces it on the request, and checks that exactly one `host` with value `request.example` reaches the server in all five HTTP/1 modes. This addresses oneandonlydean's request and B-Howell's duplicate-Host probe. - **`0b9da5dc5a84`** removes only `Require(Throws(... sceHttp2SendRequest(child ...)))` from `GuestHttp2.cpp`. The CONNECT child is still created and used for the deletion and invalid-handle checks, and the production refusal (`Transport.cpp:350`) is still there. This addresses oneandonlydean's request. - **Description:** it now says that #11575 is merged and that #11586's commit is included. ## What I ran Head `0b9da5dc5a84ed9bc4a2e64b15ed57afe5fbaeb1`, `main` `a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8`, merged tree `a08ae068c0c9610ab5ef27e33d72dc4f8f83a863`. Debian 13 VM (Xeon Gold 6136), GCC 14.2.0, Release, Ninja, a clean worktree. ```sh git diff --check a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8...0b9da5dc5a84ed9bc4a2e64b15ed57afe5fbaeb1 python3 tools/check_conventions.py --base a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8 git diff 3ee4e2bc6657 0b9da5dc5a84 -- core/libs/prx git diff 88ad9dabd393 0b9da5dc5a84 # negative control git show 3ee4e2bc6657:core/libs/prx/libSceHttp2/Transport.cpp > core/libs/prx/libSceHttp2/Transport.cpp ninja -C build libSceHttp2 guest_http2_transport_tests guest_http2_tests ctest --test-dir build -R '^guest_http2_http1$' --output-on-failure # restore git show a08ae068c0c9610ab5ef27e33d72dc4f8f83a863:core/libs/prx/libSceHttp2/Transport.cpp > core/libs/prx/libSceHttp2/Transport.cpp git status --porcelain ninja -C build libSceHttp2 guest_http2_transport_tests guest_http2_tests guest_http2_cookie_tests guest_http2_options_tests ctest --test-dir build -R '^guest_http2' -j8 --test-load 32 --output-on-failure ``` | Check | Result | |---|---| | Merge onto `main` | Clean | | `git diff --check` | Clean | | `check_conventions.py` | `All conventions checks passed.` | | Build and `libs` (script) | OK | | Selected tests (script, 779 run) | No new failures or timeouts. `unwrap_self` also fails on `main`. Two `main_sync_renames_*` tests that fail on the baseline pass here; this PR does not touch them. | | `guest_http2*` on merged tree | 10/10 pass in 12.91 s. Slowest: `guest_http2_redirects` 12.75 s, `guest_http2_transport` 7.40 s, `guest_http2_http1` 6.22 s, `guest_http2_ssl_callbacks` 2.22 s | | Vulkan validation | Skipped: the PR changes no AGC, shader or VideoOut files | <details><summary>Negative control output</summary> ``` 1/1 Test #2302: guest_http2_http1 ................Subprocess aborted***Exception: 0.71 sec HTTP2: HTTP1 exactly one overridden host header ``` </details> ## Negative control I restored `Transport.cpp` from `3ee4e2bc6657`, the commit just before the Host fix; it differs from the head only in the Host lines. I kept the head's tests and rebuilt. `guest_http2_http1` then aborted at `HTTP1 exactly one overridden host header`. After restoring the merged `Transport.cpp`, it passed again, and `git status --porcelain` was empty. The test removal in `0b9da5dc5a84` needs no control. ## Previous findings - **Stacking sentence in the description: Resolved.** The description now says that #11575 is merged and names #11586's commit `173968c47107` as included. That matches the history. - **Whitespace before `;` in chunk-size lines: Still open** (non-blocking, unchanged). [Transport.cpp:724](https://github.com/boykopovar/AnyPS5/blob/0b9da5dc5a84ed9bc4a2e64b15ed57afe5fbaeb1/core/libs/prx/libSceHttp2/Transport.cpp#L724-L724) still passes everything before `;` to `Number`. A size line like `8 ;ext` throws instead of being misparsed, so this is safe. - **Description silent on the default-trust bullet removal: No longer applies.** After the replay, the PR no longer touches that bullet. ## New findings ### Blocking None. ### Non-blocking - **The Host debt entry now describes only HTTP/2.** [libSceHttp2.md:43](https://github.com/boykopovar/AnyPS5/blob/0b9da5dc5a84ed9bc4a2e64b15ed57afe5fbaeb1/docs/dev/debt/libSceHttp2.md#L43-L43) says a guest `Host` header "becomes the request's `:authority` pseudo-header and is not sent as a `Host` field". On version 1/2 requests it is now sent as the single `Host` field. Suggest adding a clause such as "on HTTP/1.x it replaces the URL authority in the one `Host` field". - **The HTTP/1.x gzip entry is in the wrong section.** [libSceHttp2.md:57](https://github.com/boykopovar/AnyPS5/blob/0b9da5dc5a84ed9bc4a2e64b15ed57afe5fbaeb1/docs/dev/debt/libSceHttp2.md#L57-L57) is under `### Additional PS5 3.20 imports (xdCloudy #9485)` instead of `### Functional`, and the file no longer ends with a newline. Moving the entry next to the existing gzip entry fixes both. ## Not verified - Windows, titles and real remote servers; I ran only the loopback tests. The Windows runs at `88ad9dabd3` by B-Howell and the title runs by the author are as they reported them. - How the console behaves for the unknowns in the debt file: Host semantics, HTTP/1 header serialization, and the SSL callback error mappings. - I did not re-run a full-production negative control for the SSL-callback and HTTP/1 transport code. The callback setter's signature changed in the public header, so the tests do not compile against `main`'s production files. Earlier controls by B-Howell and BunnyFl cover the HTTP/1 transport. <!-- anyps5-bots job=1902 head=0b9da5dc5a84ed9bc4a2e64b15ed57afe5fbaeb1 -->
XairRrR commented 2026-11-03 22:11:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T22:11:19Z.

Review: APPROVED


Re-checked — approved

Since my last review, the branch was rebased onto current main as three linear topic commits. #11586 is merged now, so main supplies the SSL-callback code. The HTTP/1.x gzip debt entry moved into ### Functional. The PR merges cleanly, builds, passes all ten guest_http2* groups, and the Host regression test still fails without the Host fix.

What changed since my last review

  • Rebase. The head is now 3f9c054d18 (HTTP/1.x transport), 9a05af1539 (one effective Host) and 438821252f (CONNECT test), applied on main 04a9eb4fa2, with no merge commits. The range-diff shows commits 2 and 3 unchanged. Commit 1 differs from before only in GuestHttp2.cpp and docs/dev/debt/libSceHttp2.md. The SSL-callback adapter is no longer part of this diff, because main already has it.
  • GuestHttp2.cpp. Compared with main, the PR removes one line: the assertion that sceHttp2SetRedirectCallback throws on a context or cookie-box id. It also changes the sibling child to CONNECT and drops the send-throws assertion. Both removals match oneandonlydean's earlier requests to stop testing that unimplemented calls throw.
  • Debt file. The HTTP/1.x gzip entry is now under ### Functional, and the file ends with a newline. The transport entry is split into a behaviour entry and an ABI entry. A request-deadline entry is added. The TLS-settings and pool-statistics text from main is kept.
  • Description. It now has no open dependency ("#11586 and #11575 merged") and gives the new head and base.

What I ran

Head 438821252fc1fd8c2f9c82d57bb65c57a4300d8b, main 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24, merged tree 3acad1db1d621c02dc15796095d743af4f1054a5. Debian 13 VM (Xeon Gold 6136), GCC 14.2.0, Release, Ninja, in a clean worktree.

git diff --check 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24...438821252fc1fd8c2f9c82d57bb65c57a4300d8b
python3 tools/check_conventions.py --base 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24
git diff 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24 438821252fc1 -- docs/dev/debt/libSceHttp2.md core/libs/tests/GuestHttp2.cpp core/libs/prx/libSceHttp2
git diff 3f9c054d18 9a05af1539 --stat
ctest --test-dir build -R '^guest_http2' -j8 --test-load 32 --output-on-failure
# negative control
git show 3f9c054d18:core/libs/prx/libSceHttp2/Transport.cpp > core/libs/prx/libSceHttp2/Transport.cpp
ninja -C build -j32 -l32 libSceHttp2 guest_http2_transport_tests
ctest --test-dir build -R '^guest_http2_http1$' --output-on-failure
# restore
git show 3acad1db1d621c02dc15796095d743af4f1054a5:core/libs/prx/libSceHttp2/Transport.cpp > core/libs/prx/libSceHttp2/Transport.cpp
git status --porcelain
ninja -C build -j32 -l32 libSceHttp2 guest_http2_transport_tests
ctest --test-dir build -R '^guest_http2_(http1|redirects|transport|ssl_callbacks)$' -j4 --test-load 32 --output-on-failure
Check Result
Merge onto main Clean
git diff --check Clean
check_conventions.py All conventions checks passed.
Build and libs (script) OK
Selected tests (script, 827 run) 824 pass, 2 skips (all expected), no new failures or timeouts. unwrap_self_..._group also fails on main.
guest_http2* on the merged tree 10/10 pass. Slowest: guest_http2_redirects 13.31 s, guest_http2_transport 7.7 s, guest_http2_http1 6.5 s. All are under 30 s.
Vulkan validation Skipped: the PR changes no AGC, shader recompiler or VideoOut files
Negative control output
2519 - guest_http2_http1 (Subprocess aborted)
HTTP2: HTTP1 exactly one overridden host header

Negative control

I restored Transport.cpp from 3f9c054d18, the commit just before the Host fix. I kept the head's tests and rebuilt libSceHttp2 and guest_http2_transport_tests. guest_http2_http1 then aborted at HTTP1 exactly one overridden host header. After I restored the merged file and rebuilt, git status --porcelain was empty and guest_http2_http1, _transport, _redirects and _ssl_callbacks passed again. The CONNECT test change only removes an assertion, so it needs no control.

Previous findings

  • HTTP/1.x gzip entry in the wrong section, and no newline at end of file: Resolved. The entry is now at libSceHttp2.md:53, under ### Functional, and the file ends with \n.
  • The Host debt entry describes only HTTP/2: Still open (non-blocking). libSceHttp2.md:42 still says that a guest Host header "is not sent as a Host field". On version 1/2 requests, though, it is sent as the single Host field. A clause such as "on HTTP/1.x it replaces the URL authority in the one Host field" would fix this.
  • Whitespace before ; in chunk-size lines: Still open (non-blocking, unchanged). Transport.cpp:724 still passes everything before ; to Number. A size line like 8 ;ext throws instead of being misparsed, so this is safe.

New findings

Blocking

None.

Non-blocking

None.

Not verified

  • Windows, titles and real remote servers: I ran only the loopback tests. The author reports that this head passes 11/11 groups on Linux; I accept that as their report. The Windows and title results in the description belong to earlier heads.
  • How the console behaves for the unknowns in the debt file: Host semantics, HTTP/1 header serialization, and the timing of buffered reads against the deadline.
  • A full-production negative control for the HTTP/1.x transport itself. main's Export.cpp does not compile against this head's Transport.hpp, because CreateRequest_nid_no_patch takes a new version argument. Earlier controls by B-Howell and BunnyFl cover the transport.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5760205667 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11611#pullrequestreview-5760205667). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T22:11:19Z. **Review:** APPROVED --- # Re-checked — approved Since my last review, the branch was rebased onto current `main` as three linear topic commits. #11586 is merged now, so `main` supplies the SSL-callback code. The HTTP/1.x gzip debt entry moved into `### Functional`. The PR merges cleanly, builds, passes all ten `guest_http2*` groups, and the Host regression test still fails without the Host fix. ## What changed since my last review - **Rebase.** The head is now `3f9c054d18` (HTTP/1.x transport), `9a05af1539` (one effective Host) and `438821252f` (CONNECT test), applied on `main` `04a9eb4fa2`, with no merge commits. The range-diff shows commits 2 and 3 unchanged. Commit 1 differs from before only in `GuestHttp2.cpp` and `docs/dev/debt/libSceHttp2.md`. The SSL-callback adapter is no longer part of this diff, because `main` already has it. - **`GuestHttp2.cpp`.** Compared with `main`, the PR removes one line: the assertion that `sceHttp2SetRedirectCallback` throws on a context or cookie-box id. It also changes the sibling child to `CONNECT` and drops the send-throws assertion. Both removals match oneandonlydean's earlier requests to stop testing that unimplemented calls throw. - **Debt file.** The HTTP/1.x gzip entry is now under `### Functional`, and the file ends with a newline. The transport entry is split into a behaviour entry and an ABI entry. A request-deadline entry is added. The TLS-settings and pool-statistics text from `main` is kept. - **Description.** It now has no open dependency ("#11586 and #11575 merged") and gives the new head and base. ## What I ran Head `438821252fc1fd8c2f9c82d57bb65c57a4300d8b`, `main` `04a9eb4fa2877eb6e40bf2c83adf972e40d89b24`, merged tree `3acad1db1d621c02dc15796095d743af4f1054a5`. Debian 13 VM (Xeon Gold 6136), GCC 14.2.0, Release, Ninja, in a clean worktree. ```sh git diff --check 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24...438821252fc1fd8c2f9c82d57bb65c57a4300d8b python3 tools/check_conventions.py --base 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24 git diff 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24 438821252fc1 -- docs/dev/debt/libSceHttp2.md core/libs/tests/GuestHttp2.cpp core/libs/prx/libSceHttp2 git diff 3f9c054d18 9a05af1539 --stat ctest --test-dir build -R '^guest_http2' -j8 --test-load 32 --output-on-failure # negative control git show 3f9c054d18:core/libs/prx/libSceHttp2/Transport.cpp > core/libs/prx/libSceHttp2/Transport.cpp ninja -C build -j32 -l32 libSceHttp2 guest_http2_transport_tests ctest --test-dir build -R '^guest_http2_http1$' --output-on-failure # restore git show 3acad1db1d621c02dc15796095d743af4f1054a5:core/libs/prx/libSceHttp2/Transport.cpp > core/libs/prx/libSceHttp2/Transport.cpp git status --porcelain ninja -C build -j32 -l32 libSceHttp2 guest_http2_transport_tests ctest --test-dir build -R '^guest_http2_(http1|redirects|transport|ssl_callbacks)$' -j4 --test-load 32 --output-on-failure ``` | Check | Result | |---|---| | Merge onto `main` | Clean | | `git diff --check` | Clean | | `check_conventions.py` | `All conventions checks passed.` | | Build and `libs` (script) | OK | | Selected tests (script, 827 run) | 824 pass, 2 skips (all expected), no new failures or timeouts. `unwrap_self_..._group` also fails on `main`. | | `guest_http2*` on the merged tree | 10/10 pass. Slowest: `guest_http2_redirects` 13.31 s, `guest_http2_transport` 7.7 s, `guest_http2_http1` 6.5 s. All are under 30 s. | | Vulkan validation | Skipped: the PR changes no AGC, shader recompiler or VideoOut files | <details><summary>Negative control output</summary> ``` 2519 - guest_http2_http1 (Subprocess aborted) HTTP2: HTTP1 exactly one overridden host header ``` </details> ## Negative control I restored `Transport.cpp` from `3f9c054d18`, the commit just before the Host fix. I kept the head's tests and rebuilt `libSceHttp2` and `guest_http2_transport_tests`. `guest_http2_http1` then aborted at `HTTP1 exactly one overridden host header`. After I restored the merged file and rebuilt, `git status --porcelain` was empty and `guest_http2_http1`, `_transport`, `_redirects` and `_ssl_callbacks` passed again. The CONNECT test change only removes an assertion, so it needs no control. ## Previous findings - **HTTP/1.x gzip entry in the wrong section, and no newline at end of file: Resolved.** The entry is now at [libSceHttp2.md:53](https://github.com/boykopovar/AnyPS5/blob/438821252fc1fd8c2f9c82d57bb65c57a4300d8b/docs/dev/debt/libSceHttp2.md#L53-L53), under `### Functional`, and the file ends with `\n`. - **The Host debt entry describes only HTTP/2: Still open** (non-blocking). [libSceHttp2.md:42](https://github.com/boykopovar/AnyPS5/blob/438821252fc1fd8c2f9c82d57bb65c57a4300d8b/docs/dev/debt/libSceHttp2.md#L42-L42) still says that a guest `Host` header "is not sent as a `Host` field". On version 1/2 requests, though, it is sent as the single `Host` field. A clause such as "on HTTP/1.x it replaces the URL authority in the one `Host` field" would fix this. - **Whitespace before `;` in chunk-size lines: Still open** (non-blocking, unchanged). [Transport.cpp:724](https://github.com/boykopovar/AnyPS5/blob/438821252fc1fd8c2f9c82d57bb65c57a4300d8b/core/libs/prx/libSceHttp2/Transport.cpp#L724-L724) still passes everything before `;` to `Number`. A size line like `8 ;ext` throws instead of being misparsed, so this is safe. ## New findings ### Blocking None. ### Non-blocking None. ## Not verified - Windows, titles and real remote servers: I ran only the loopback tests. The author reports that this head passes 11/11 groups on Linux; I accept that as their report. The Windows and title results in the description belong to earlier heads. - How the console behaves for the unknowns in the debt file: Host semantics, HTTP/1 header serialization, and the timing of buffered reads against the deadline. - A full-production negative control for the HTTP/1.x transport itself. `main`'s `Export.cpp` does not compile against this head's `Transport.hpp`, because `CreateRequest_nid_no_patch` takes a new `version` argument. Earlier controls by B-Howell and BunnyFl cover the transport. <!-- anyps5-bots job=3648 head=438821252fc1fd8c2f9c82d57bb65c57a4300d8b -->
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!11611
No description provided.