Repository navigation
feat(http2): serialize HTTP/2 response and trailing headers - #12305
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
The implementation is coherent with the local parse helpers, and the updated Windows job plus conventions, eligibility, intake, and report checks pass. The author reports the focused Linux tests; hosted Linux is skipped. One test improvement would strengthen the central claim: guest_http2_transport currently checks the status-line prefix, a representative header and the CRLF terminator, but does not pass the returned block through sceHttpParseStatusLine and sceHttpParseResponseHeader. I have not approved: the exact PS5 HTTP/2 serialization (including status-line version/reason phrase and pseudo-header handling) is still explicitly unverified, and the current tests establish only the chosen local format.
|
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.
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.
|
f68a4ac to
bec0116
Compare
|
Rebased onto current
The console's exact block, reason phrases and pseudo-header handling remain unverified, as the debt entry says. |
MarcZX10
left a comment
There was a problem hiding this comment.
The added round-trip through sceHttpParseStatusLine and sceHttpParseResponseHeader shows that the chosen local string format is self-consistent, but it does not establish that sceHttp2GetAllResponseHeaders returns this HTTP/1.1 status line, local reason phrase, lowercase field names, or excludes HTTP/2 pseudo-headers on the PS5. The PR and debt entry still state that the console format is unknown. Under AGENTS.md, keep unknown generic behavior throwing until the contract is supported by console observation, SDK documentation, or a reliable implementation that models this export; alternatively, provide that evidence and tests for the established format. The current checks are queued after the rebase. No approval.
|
One additional merge-rule item from the refreshed overlap report: open #11950 also changes the response-header handling in |
|
The latest Windows CI failure is caused by this PR’s CMake edit. |
MarcZX10
left a comment
There was a problem hiding this comment.
The Windows workflow now fails during CMake configure on this PR’s change at core/libs/prx/libSceHttp2/CMakeLists.txt:60: set_tests_properties called with incorrect number of arguments. The ENVIRONMENT_MODIFICATION property has a second value without a property key; combine both PATH edits into one semicolon-separated value or make a second complete property call, then rerun Windows CI. Existing blockers also remain: the PR still lacks evidence for the PS5 response-header serialization contract (the local round-trip proves only self-consistency of the chosen format), and the overlap with #11950 still needs merge-order coordination in the checklist. I have not approved.
bec0116 to
f25726e
Compare
|
Rebased onto The body now cites shadPS4's |
adriadam10
left a comment
There was a problem hiding this comment.
Thanks for the rebase and for fixing the Windows ENVIRONMENT_MODIFICATION configure error. The remaining blocker is the same one @MarcZX10 raised:
core/libs/prx/libSceHttp2/Transport.cpp:455-457: the status line (HTTP/1.1, the localReason()table), the lowercase names and leaving out pseudo-headers are all guesses.docs/dev/debt/libSceHttp2.md:35says so too. The round-trip throughsceHttpParseStatusLine/sceHttpParseResponseHeaderonly shows the block agrees with our own parser.- The cited shadPS4
sceHttp2GetAllResponseHeadersis marked(STUBBED)and just calls its HTTP/1 function, so it is not evidence of the PS5 block. KytyPS5 returns a null block with size 0 and prosper reports the response as unavailable; neither shows a format. - The PPSA02195 run was "with other local changes", with no result for this change alone.
Generic behaviour whose format is unknown keeps throwing (AGENTS.md). To land this, please give evidence of the real block: a capture or log from a console or a PS5 title showing the bytes, SDK documentation, or a reference that measured it. Then the test should pin those bytes (reason phrase, header case, no :status). Also:
Depends onsays none, but #11950 changes the same response-header hunk inTransport.cpp. Agree the merge order with its author and record it.
f25726e to
aa7a68a
Compare
|
Rebased onto current On Open review points unchanged, as I cannot close them from here: the console evidence for the exact |
|
Rebased onto current On the new head (Linux x86-64, CachyOS, GCC 16.2.1, Release): The open review points stand unchanged, as previously reported: the console evidence for the exact AI-assisted: yes (Claude Code) |
aa7a68a to
f4e18e5
Compare
|
Re-review request at The block is Changes on this head: serializer, |
4336a3d to
e98fae5
Compare
|
Rebased onto Linux x86-64 (CachyOS), GCC 16.2.1, Release: The firmware 11.00 evidence for the status line, reason phrase, lowercase names and consumed |
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (5, not counted against this PR)Passed on retry (1, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)Validation IDs already present on main (4 IDs in 488 tests)Skipped (7)ReproduceAutomated 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. |
55475e6 to
12bd5be
Compare
|
Rebased onto current
Checks on
The body still records |
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (4, not counted against this PR)Validation IDs already present on main (4 IDs in 550 tests)Skipped (7)ReproduceAutomated 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. |
12bd5be to
17a1225
Compare
|
Rebased onto current The only conflict was the Focused checks on the rebased head:
No source change beyond the rebase conflict resolution. |
|
Update: the auth fix is now #16240. I also refreshed my existing HTTP/1 gzip PR #15221 after its gzip-member prerequisite merged. Its production patch is unchanged, but its fixture Mode enum conflicts with your added Trailers case. #16240 and #15221 merge cleanly with each other. I propose #12305 first, followed by those two PRs, and have declared that ordering in both descriptions; your agreement is still pending. I will preserve all header/trailer, cookie and gzip fixture cases on rebase after your branch lands. These implement distinct features. Would that order work for you? |
Firmware 11.00 libSceHttp2 serializes sceHttp2GetAllResponseHeaders as "HTTP/2.0 <code> HTTP2 NO PHRASE\r\n", keeps the received header names and consumes :status. Replace the local HTTP/1.1 reason table.
|
Rebased automatically onto current |
17a1225 to
d2e283b
Compare
|
That order works: #12305 first, then #16240 and #15221. This head |
…eaders # Conflicts: # core/libs/prx/libSceHttp2/Transport.cpp
|
Resolved the merge conflict by merging current Validated on head
|
|
Checked the HTTP/2 response-header block ( |
What
sceHttp2GetAllResponseHeadersthrew for every request. It now serializes the decoded HTTP/2 header block asHTTP/2.0 <code> HTTP2 NO PHRASE\r\n, then one<name>: <value>\r\nline per header with the lowercase name HTTP/2 reports, a consumed:statuspseudo-header and a final\r\n. It also exportssceHttp2GetAllTrailingHeaders(CjxqMyx2-pU): the trailer HEADERS frame is collected separately and serialized as one<name>: <value>line per field plus a final, without a status line. Both buffers live until the request is deleted; a null out pointer, an unavailable response or a response without trailers still throws.Evidence for the contract: the decrypted firmware 11.00
libSceHttp2.prxfrom a retail console.sceHttp2GetAllResponseHeaders(0x15e0) calls the helper at0x5210, which returns the block built by the serializer; the status line isstrlcpy("HTTP/2.0")+" "+ status +" "+"HTTP2 NO PHRASE"+"\r\n",:statusis consumed, each other header is appended asname: value\r\nwith the name nghttp2 reports, and a final\r\nis added.sceHttp2GetAllTrailingHeaders(0x16b0) returns its cached block through the helper at0x5340; the console's exact trailer serialization was not measured, so it follows the response serializer without the status line and the debt entry records that. This replaces the previous HTTP/1.1 status line and local reason table, which were guesses.Tested
Linux x86-64 (CachyOS), GCC 16.2.1, Release:
ctest --test-dir build -R '^guest_http2'passes 8/8 (guest_http2_transport7.0 s,guest_http2_redirects11.9 s). The transport fixture now asserts theHTTP/2.0status line, theHTTP2 NO PHRASEreason, the lowercase header block, and anghttp2_submit_trailerresponse's `x-trailer: yesx-trailer-two: 2
block;check_conventions.py --base origin/mainandgit diff --checkare clean. Rebased ontomaina4eca2a; the focused tests pass 8/8 on the refreshed headbf96b8a`, and the response and trailer serialization entries are in the debt file.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)