Skip to content

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

Merged
oneandonlydean merged 4 commits into
boykopovar:mainfrom
JJenkx:feat/http2-http1-transport
Nov 4, 2026
Merged

oneandonlydean merged 4 commits into
boykopovar:mainfrom
JJenkx:feat/http2-http1-transport

Conversation

@JJenkx

@JJenkx JJenkx commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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

@github-actions github-actions Bot added the unblocks title Names a title ID on the Unblocks line label Oct 26, 2026
@JJenkx

JJenkx commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Follow-up diagnosis for the native TLS stop in the description: a debugger probe captured KNOWN_CA_CHECK (0x20), callback refusal and sceSslConnect=0x8095f0fd. Privately adding the existing #11145 system-CA change, with verification enabled, changes the observations to zero verification flags, accepting callbacks and successful connects. The game then reaches the house scene behind a promotional overlay and closes normally at180s. Full gameplay/FPS remain unverified; the strict scene classifier did not match the overlay and retains passed=false.

This is additional evidence for #11145, not a change to this PR's HTTP1 implementation or a full-current-main native validation. Private source a8c50cfbbc7, baseline 088549ceb3a, same #6782/#6913 prerequisites; all saves/config/kernel settings restored and no game PIDs remain. Sanitized paired evidence.

Fresh-main follow-up: private 2215b13cf559 is based on main 74acfad, #11611's stack, latest #11145 CA commits 0fec53b4c74/8f2dc1c3015, and the same #6782/#6913 prerequisites. Seven HTTP groups and four GPU groups pass. Two no-debugger native runs reach the readable Welcome tutorial prompt over the house and close normally at240s with exit0; saves/config/kernel64 restored and no remaining processes. Promotion dismissal is a positively matched, single Circle action. Native Khronos enabled, no VUIDs. Full tutorial gameplay/audio remain unverified.

Current-main functional result and complete baseline digest, SHA256 ea09b2ce8cad5268a0ac34cb31296a2601e460beb7d0d120a420c98f916a810f. The first detailed trace overflowed; the repeat has zero dropped events. Approximately14.8FPS at4K is the baseline, not a demonstrated improvement. Raw traces remain local; this is not a paired optimization report.

Tutorial and save-reload follow-up: main74acfad-based private 27b64d68cfb1 now completes the first tutorial reward, enters the pet shop, adopts a hamster and retains it across a separate memory-save reload; default-name confirmation then unlocks new quests. Both bounded runs exit0 with all original state restored/no processes, actual Khronos and zero VUIDs. This integration also has #11145CA, same #6782/#6913 and #11564; no bare-main/full-gameplay/audio/FPS claim. Tutorial/reload evidence, with screenshots in the game discussion.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@JJenkx A heads-up on how this composes with #11627 (edubox), which lets a guest-set Host header through on HTTP/2 as :authority. Once both are in, SendHttp1 here writes Host: <url authority> and then appends every stored header, so a request with a configured Host gets two Host fields, and HTTP/1.1 servers answer that with 400.

We plan to land #11627 first. Could you then pick the effective Host once in the HTTP/1 sender (the configured value if there is one, otherwise the URL authority), skip it in the generic header loop, and add a loopback test for HTTP/1.0 and 1.1 that sets or replaces Host and checks exactly one Host line with the right value?

@JJenkx

JJenkx commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Buffered deadline correction, head b5eebed6ca5: added four real loopback cases for an overall deadline expiring while response bytes remain buffered (fixed/chunked/close-delimited TLS and plain TCP). Test-only 08dc4a6ac53 fails the new HTTP1 group while the other six pass. The two-check correction returns all seven to passing in24.66s and leaves the output byte untouched on expiry. It follows existing HTTP2/network-read host policy; console buffered-after-expiry behavior remains unmeasured and is documented. This is an ordinary fast-forward update, not a rebase/force-push. No Windows or new-head native validation is claimed for this correction yet. Negative/positive evidence, SHA256 4df5d8472ab750ca3294fe707b4c14fd65ac7f22bb622d8fe7b1676e43fdfa04.

For the agent handling existing PR rebases: retain additive commits 08dc4a6ac53 and b5eebed6ca5; source branches were not rebased or force-pushed.

Native follow-up: private 21444662ef4 combines this correction with the prior title integration and current main cb45ae2ddf6 (the new upstream change is unrelated Windows crash-stack regex). Four graphics checks pass; PPSA06652 reloads the retained hamster, visibly pans from sleeping area to kitchen on right-stick input, and R3 refocuses on the hamster. Normal close300s/exit0, all original state restored/no processes, actual Khronos and zero VUIDs. This is integration functional coverage, not a title-level reproduction of the expired-buffer boundary, a barepublicB5 native run, a Windows result or an FPS claim. Native input/cleanup evidence, SHA256 c2cae71fbd58116547b862af4578d080fce77ab117792c5972a87f318bace0a4.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 11950 core/libs/prx/libSceHttp2/Transport.cpp L10
core/libs/tests/GuestHttp2Transport.cpp L57-58

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 11470 core/libs/prx/libSceHttp2/CMakeLists.txt
core/libs/prx/libSceHttp2/Export.cpp
core/libs/tests/GuestHttp2.cpp
docs/dev/debt/libSceHttp2.md
PR 12305 core/libs/prx/libSceHttp2/CMakeLists.txt
core/libs/prx/libSceHttp2/Export.cpp
core/libs/prx/libSceHttp2/Transport.cpp
core/libs/prx/libSceHttp2/Transport.hpp
core/libs/tests/GuestHttp2Transport.cpp
docs/dev/debt/libSceHttp2.md
PR 13486 core/libs/prx/libSceHttp2/CMakeLists.txt
core/libs/prx/libSceHttp2/Export.cpp
core/libs/prx/libSceHttp2/Transport.cpp
core/libs/prx/libSceHttp2/Transport.hpp
core/libs/tests/GuestHttp2.cpp
core/libs/tests/GuestHttp2Transport.cpp
docs/dev/debt/libSceHttp2.md
PR 14085 docs/dev/debt/libSceHttp2.md
PR 14212 docs/dev/debt/libSceHttp2.md

@JJenkx

JJenkx commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

@oneandonlydean Agreed: #11627 first. A private follow-up on #11611 b5eebed6ca5403a0677baebed1182541dd52174c plus #11627 eb9aa573a85a26502d94244a42d629384d0e1cbb selects the last configured Host (or URL authority) once in SendHttp1, writes that single field, and skips Host in the generic loop. The tested follow-up is 56316a1a30db6bb721eaba42079f876ee0daab27; it has not been pushed to this PR, whose active owner will coordinate integration after #11627 lands.

Linux Release: all eight HTTP2 API/loopback groups pass, including 16 Host cases across HTTP/1.0 and HTTP/1.1, TLS and plain TCP: URL fallback, a mixed-case explicit override, request replacement of an inherited template Host, and append-mode last-value selection. Every case checks the actual wire version, exactly one Host field and its expected value. With only production Transport.cpp restored to the peer-integrated parent and final tests retained, the new group fails at “HTTP1 exactly one Host line”. Restoring the follow-up passes three focused repetitions (48 Host cases) and reproduces the same libSceHttp2 SHA256. Conventions and whitespace pass. This is private Linux loopback qualification, not Windows/title validation or a claim that the current public branch already contains the fix.

Follow-up patch, peer-only integration patch, exact pins, eight-group logs and negative/restoration evidence. SHA-256 81eec6af931bf159a6d45fc34b8e449eee41045408b27ade9bd94af26195b9e7; downloaded copy verified. The negative control stops on its first configured-Host case (HTTP/1.0 TLS), so it is not a separate negative result for every protocol/transport combination.

AI-assisted: yes.

@BunnyFl

BunnyFl commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Correction (2026-10-28): this run built only the test targets, which load the unpatched libraries. Building the patched libSceHttp2.prx from b5eebed6ca merged onto main 8ff4baf534 stopped at its NID patch on Windows (see my later comment, 6443625517); #12059, merged since, addresses that failure (I have not re-run it). So "pass" below covers the test executables, not a Windows build of the patched library.

A Windows run of b5eebed6ca merged onto main 74acfad65b with no conflicts: Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON, each test run three times with ctest -V.

  • All eight HTTP2 groups pass in all three runs: guest_http2, guest_http2_cookies, guest_http2_transport, guest_http2_early_response, guest_http2_dns_first (registered on Windows only), guest_http2_http1, guest_http2_ssl_callbacks and guest_http2_redirects.
  • Control: with Export.cpp, Transport.cpp and Transport.hpp in libSceHttp2 put back to ccd1335aef (the feat(http2): deliver TLS certificate verification callbacks #11586 commit under this PR; this PR's tests kept), guest_http2_http1 fails in all three runs with sceHttp2SendRequest: HTTP/1.x transport is not implemented not implemented, and the other seven pass.

@JJenkx

JJenkx commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

Prepared the requested composition correction locally against #11611 b5eebed6ca plus #11627 eb9aa573a8, preserving the peer commit. SendHttp1 now selects the configured Host (or URL authority), emits it once, and excludes it from the generic header loop. Socket routing and TLS SNI remain URL-based.

Added 15 real loopback wire cases: HTTP/1.0 TLS, HTTP/1.1 TLS and HTTP/1.1 plain TCP, each checking URL fallback, template inheritance, direct request setting, replacement and append-last selection. The latter follows #11627's current effective-authority policy; console duplicate-header semantics are not claimed. Every case checks exactly one Host with the expected value.

Negative test-only 84bbcae7452 reproduces HTTP1 exactly one host field while the other six groups pass. Corrected 376bc124665 passes all seven HTTP2 groups (25.62s); conventions pass. Logs, source pins and the two-commit patch, SHA256 47c95af56ee968c3d5b8019a4eb424f4fd87a687c4a94d506d740bba2ecbe998. No new Windows or native-title validation is claimed for this correction.

As requested, I have kept these commits local while #11627 remains open. Our separate rebasing agent has a local handoff containing the exact two commits to apply to the refreshed #11611 once #11627 lands; the private integration merge must not be published. The current public branch was not rewritten. The independent Windows b5eebed6ca verification is now attributed in the PR description.

@milescoviello

milescoviello commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

A title that reaches this path: MXGP 26 (PPSA30839 01.003.000) submits its first request as HTTP/1.x through sceHttp2SendRequestAsync. Linux, RTX 4070 Ti (NVIDIA 615.71.09), GCC 15.2, Release libs, warm shader cache, 600 s run limit, in a sandbox with no network.

Without #11575, this PR's redirect support covers MXGP's sceHttp2SetRedirectCallback call. Its only conflict with #11617 and #11630 is the debt file, plus the Mode enum and main() call list in GuestHttp2Transport.cpp with #11630; keeping both sides was enough. On that stack (c60b527966), the five tests built from guest_http2_transport_tests pass 3 of 3 on Linux, guest_http2_http1 and guest_http2_redirects among them.

AI-assisted: yes (Claude Code)

@hugodearaujo

Copy link
Copy Markdown
Contributor

Tested on Alan Wake 2 (PPSA02572, 01.200.007): Linux, RX 9070 XT (RADV), Release, relinked with --module-dir . --registry, APS5_PLAYGO_UNLISTED_CHUNKS=installed, Cross every 30 s followed by the right stick held down for 3 s. The title's OpenTelemetry exporter sends its first trace batch about 59 s after start, as an HTTP/1.1 POST (199 bytes) to an HTTPS collector, and then one every ~31 s.

  • main 27ad724: aborts at 63 s on that first request:
    terminate called after throwing an instance of 'std::runtime_error'
      what():  sceHttp2SendRequest: HTTP/1.x transport is not implemented not implemented
    
  • main 27ad724 + this PR (head b5eebed, merged cleanly; all seven guest_http2 groups pass on the merge): the request now goes out over TLS, but the title still aborts at 65 s:
    terminate called after throwing an instance of 'std::runtime_error'
      what():  sceHttp2: TLS failed; console error mapping is unknown not implemented
    
    A local build that only adds logging shows DNS and the TCP connect succeed and sceSslConnect return SSL_ERROR_UNKNOWN_CA (0x8095F00C). The title sets no SSL callback and doesn't change the verify options, so the default 0x3d stays.
  • main 27ad724 + this PR + fix(http2): trust the system CA list for HTTPS requests #11145 (head 8f2dc1c, also merged cleanly): no abort. Every export completes with HTTP/1.1 200 and an empty body (14 of 14 in the logging run), and the title keeps running at 60 fps until the 600 s timeout.

With #11145 the title stays on the first page of its license agreement: no input scrolls it (right or left stick, D-pad, L2/R2). main 27ad724 with the pre-#10167 network error put back for HTTP/1.x requests stays on that same page under the same right-stick input (the exporter then logs failed exports and the title also runs to the timeout), so that isn't caused by these two PRs.

So on this title, this PR moves the stop from the HTTP/1.x guard to the TLS failure. To get past the first export it also needs #11145, or #11922, which returns the console's code for a failed handshake instead of throwing (measured on a PS5: an untrusted certificate gives 0x8095F00C for both HTTP/1.1 and HTTP/2 templates). With this PR and #11922, and without #11145, the title also ran the whole 600 s, its exporter logging a failed send and retrying about every 31 s. Before #10167 the request returned an error and the title just kept running.

@BunnyFl

BunnyFl commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

@JJenkx A Windows build problem in b5eebed6ca that my earlier run here did not reach: that run built only the test targets, and the tests load the unpatched libraries. Merged onto main 8ff4baf534 (the only conflict is in docs/dev/debt/libSceHttp2.md), with WinLibs GCC 15.2.0 r7, Release, building libSceHttp2.prx stops at its NID patch:

FAIL: .../build/core/libs/libs/libSceHttp2.prx: import NID longer than original name: sceNetRecv

For a library, PeNidPatcher writes each import's NID over its name in place and throws when the NID is longer (core/libs/nid/src/PeNidPatcher.cpp:321). This PR adds two 10-character imports to libSceHttp2.prx, sceNetRecv and sceNetSend; the shortest library import it has on main is sceSslWrite (11 characters). With sceNetRecv replaced locally by sceNetRecvfrom(socket, data, size, 0, nullptr, nullptr), the patch fails the same way on sceNetSend; with sceNetSend also replaced by sceNetSendto(socket, data, size, 0, nullptr, 0), libSceHttp2.prx builds.

@JJenkx

JJenkx commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

Following up on BunnyFl's Windows build report above (import NID longer than original name: sceNetRecv): #12059 fixes this in PeNidPatcher for any library, rather than in this PR.

A library import whose 11-character NID doesn't fit over its name now moves to the .nidimp section that --exec already uses, so sceNetRecv and sceNetSend can stay as they are here. With this PR's head b5eebed6ca merged locally onto #12059 on Windows (WinLibs GCC 15.2.0 UCRT r7, Release):

  • libs builds;
  • patched_libraries loads all 368 patched libraries, 0 failed;
  • all 10 guest_http2* tests pass, guest_http2_http1 included.

AI-assisted: yes (Claude Code).

@B-Howell

Copy link
Copy Markdown
Contributor

God of War Ragnarök (PPSA08329) reaches this path. Below, test results are kept apart from what I read from the title's code.

From the title's code (static disassembly of the unwrapped eboot.bin 06.006.000; not run, not measured on a console)

Tests: this head b5eebed6ca, merged onto main. The only conflict was docs/dev/debt/libSceHttp2.md, where I kept main's side. Each test ran 3 times.

  • Linux (WSL Ubuntu 22.04, GCC 11.4, Release), main 5c8beca92c: all 9 guest_http2* tests pass in all 3 runs, guest_http2_http1 included. I built only the test targets: libs on that main stops at an unrelated static_assert(sizeof(RecompileResult) == 552) in ShaderDiskCache.cpp with GCC 11.4.
  • Windows 11 (WinLibs GCC 15.2.0 r7, Release), main 6db75895fb + fix(nid): move PE library imports whose NID is longer than the name #12059 (56be4608fd): libs builds and all 10 guest_http2* tests pass in all 3 runs.
  • Control, same trees on both OSes: Export.cpp, Transport.cpp, Transport.hpp and include/Http2.hpp put back to ccd1335ae (the feat(http2): deliver TLS certificate verification callbacks #11586 commit under this PR), this PR's tests kept. guest_http2_http1 aborts with sceHttp2SendRequest: HTTP/1.x transport is not implemented, and guest_http2 aborts with sceHttp2AddRequestHeader: unsupported HTTP/2 control header.

AI-assisted: yes (Claude Code)

@edubox edubox mentioned this pull request Oct 28, 2026
12 tasks done
@JJenkx

JJenkx commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Separate follow-up #15221 implements the remaining HTTP/1 gzip path using the existing HTTP/2 decoder. It contains actual head 0b9da5dc5a84 and current main 9090972b7e91; this PR's branch and scope are unchanged. Linux CPU loopback qualification and the parent-only negative/restoration proof are attached there. No native-title, Windows runtime or speed result is claimed. AI-assisted: yes (Codex).

@JJenkx

JJenkx commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Windows title check with FAR: Changing Tides (PPSA03766), on Windows 11 22621, Ryzen 9 5950X, Radeon RX 6700 XT (AMD 26.10.1), MinGW-w64 GCC 15.2.0 UCRT, Release. Converted with --module-dir Media/Modules --module-dir Media/Plugins, run with APS5_PLAYGO_UNLISTED_CHUNKS=installed, Cross every 12 s.

Libraries Result
plain main 7feb37ee3e loading scene (flooded shore, spinner, about 5 FPS), then sceHttp2SetSslCallback not implemented and abort at 210.8 s
main d1ae628bc2 + #11586 (e5408c7638) + #11611 (0b9da5dc5a) no abort; runs to the 330 s close and reaches the underwater opening, the swim with the "L TO MOVE" prompt (screens at 260 s and 300 s)

This matches the Linux result on #10445: Windows needs the same two changes to get past start-up. One run each.

AI-assisted: yes.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 3, 2026
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 0b9da5d merged onto main 1e65852 · tested 2026-11-03 21:43 UTC · 17 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 1,137 passed · 6 failed (0 new, 5 also fail on main, 1 unstable on main) · 6 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 1,149 of 3,818 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (547 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.2 s, ⚠️ agc_driver_image_sample_unnormalized 50.7 s, ⚠️ agc_driver_lazy_resolved_abi 44.4 s, ⚠️ public_headers 37.3 s, ⚠️ agc_driver_sample_multisample_target 36.3 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 7 of the last 9 main runs
Failing on main too (5, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
agc_driver_store_over_untracked
agc_driver_submit_progress
Validation IDs already present on main (4 IDs in 468 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (468 tests): agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, agc_driver_bindless_images, and 460 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_srgb8_color_target
Skipped (6)
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
Reproduce
git fetch origin 0b9da5dc5a84ed9bc4a2e64b15ed57afe5fbaeb1 1e658521a0a599872612bb91949311e2956b5283
git checkout 1e658521a0a599872612bb91949311e2956b5283 && git merge --no-ff 0b9da5dc5a84ed9bc4a2e64b15ed57afe5fbaeb1
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@JJenkx

JJenkx commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Refreshed onto main 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24 as three topic commits without merge commits; head is 438821252fc1fd8c2f9c82d57bb65c57a4300d8b. #11586 is now merged (db0f0c4d44d), so the SSL callback parent is supplied by main and the open dependency is removed.

The debt-file conflict retains main's TLS/context-option and pool-statistics text alongside the HTTP/1 deadline and gzip limitations. Source/test files merge automatically; the production transport/header/export/CMake patch plus GuestHttp2Transport.cpp have the same stable patch ID before and after (462dbc9554d2ee99d4166dfa89a04f04a8e3ccf2). Main's newer generic callback assertions are retained. The Host and CONNECT-test commits are unchanged in the range-diff.

Fresh same-host Linux Release checks: main's HTTP/2 groups 9/9; change's 10 HTTP/2 groups plus pool statistics 11/11, zero skips. Source and loaded-library hashes stay unchanged during the change run; conventions and git diff --check pass. No new Windows, title or performance result is claimed, and earlier reviews/results retain their old head pins.

Commands, patches, range-diff and full logs — SHA-256 c0d3eaee77d2d9950e5f7a872a88aa37cf0f5cfd79467c4e15fb2257148c8ac5. AI-assisted: yes.

@github-actions github-actions Bot removed review queue Next in the maintainer review queue: checks pass, no open change request, no conflict needs rebase Conflicts with main, rebase needed labels Nov 3, 2026

@XairRrR XairRrR left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@B-Howell

B-Howell commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Windows check of the refreshed head 438821252f (no merge; it already contains main 04a9eb4fa2). main was built in its own worktree at 04a9eb4fa2.

Setup: Windows 11 Pro 26300, Ryzen 7 7800X3D, WinLibs GCC 15.2.0 r7 (UCRT), Release, BUILD_TESTING=ON. git rev-parse HEAD was checked in each tree after each build.

  • main: ctest -R '^guest_http2.*$' passes 10/10 in each of 3 runs. That is one more group than on Linux, because guest_http2_dns_first is registered only on Windows.
  • This head: ctest -R '^(guest_http2.*|guest_memory_pool_stats)$' passes 12/12 in each of 3 runs (36 passes, none skipped). This includes guest_http2_http1, guest_http2_ssl_callbacks, guest_http2_redirects and guest_http2_teardown.

Negative control: I put main's Transport.cpp, Transport.hpp and Export.cpp back and left this head's tests and CMakeLists.txt unchanged. The build log shows that Transport.cpp and Export.cpp were recompiled. guest_http2_http1 then fails in all 3 runs with sceHttp2SendRequest: HTTP/1.x transport is not implemented, and the other 11 groups still pass. With this head's sources restored and rebuilt, all 12 pass again.

Not tested: real servers or titles. Everything here runs against the loopback test servers.

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot added the review queue Next in the maintainer review queue: checks pass, no open change request, no conflict label Nov 3, 2026
@JJenkx

JJenkx commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Title evidence on the current head 438821252f: Hamster Playground (PPSA06652). Linux 7.2.11, RX 6650 XT, RADV Mesa 26.2.6, Release, relinked against each build. APS5_PLAYGO_UNLISTED_CHUNKS=installed, Cross every 15 s from 30 s.

Build Result
main 1c8c0efc8c exit 134 at 32 s: sceHttp2SendRequest: HTTP/1.x transport is not implemented
this PR's head runs to the scheduled close at 180 s, exit 0, no NotImplemented throws. The 175 s screenshot shows the house interior with the HUD (House, Adopt, Unlock), coins and the control hints.

One run each.

AI-assisted: yes.

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed review queue Next in the maintainer review queue: checks pass, no open change request, no conflict labels Nov 4, 2026
@JJenkx

JJenkx commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Windows run of exact head a614d407e2, covering the "Windows not verified" point in the latest review.

Setup: Windows 11 Enterprise 22621, Ryzen 9 5950X, WinLibs GCC 15.2 UCRT, Release, BUILD_TESTING=ON. The head is merged onto main acf7ac208a (9c50b367c1, clean merge, 7 files), and I built the five guest_http2* test executables.

  • This head: all 11 registered guest_http2* tests pass, 3 of 3 runs, about 3.4 s each: guest_http2, _cookies, _options, _transport, _early_response, _system_roots, _dns_first, _http1, _ssl_callbacks, _redirects, _teardown.
  • Negative control: the PR's tests and CMake changes, with main's Transport.cpp, Transport.hpp and Export.cpp restored; the test binaries were rebuilt. 10 of 11 pass. guest_http2_http1 aborts in both runs with sceHttp2SendRequest: HTTP/1.x transport is not implemented.
  • Restored: the PR's sources rebuilt, and 11 of 11 pass.

These are loopback tests only. I did not run titles or contact real remote servers.

AI-assisted: yes.

@JJenkx

JJenkx commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Linux check of the current head a614d407e2, which merges main c2eafe4461 into the topic, including #11922's TLS handshake codes in libSceHttp2. Arch Linux 7.2.11, GCC 16.2.1, Release, BUILD_TESTING=ON; a separate worktree at exactly a614d407e2.

  • ctest -R '^guest_http2': 10 of 10 pass, three times.
  • Hamster Playground (PPSA06652), relinked against this build: RX 6650 XT, RADV Mesa 26.2.6, APS5_PLAYGO_UNLISTED_CHUNKS=installed, Cross every 15 s from 30 s. It runs to the scheduled close at 180 s, exit 0, with no NotImplemented throw. The 175 s screenshot is lit (mean 164 of 255), as on the previous head.

AI-assisted: yes.

@oneandonlydean
oneandonlydean merged commit 57d3815 into boykopovar:main Nov 4, 2026
12 checks passed
BunnyFl added a commit to BunnyFl/AnyPS5 that referenced this pull request Nov 4, 2026
Resolve the HTTP/1.x transport merge (boykopovar#11611): keep both includes in Transport.cpp, and add Cookie and CookieFlood to the test Mode enum after StallUpload, outside the Http10..Http1Plain and EarlyFinal ranges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build docs prx unblocks title Names a title ID on the Unblocks line

Projects

None yet

Development

Successfully merging this pull request may close these issues.