feat(http2): inflate gzip response bodies over HTTP1 #15221

Merged
JJenkx merged 1 commit from upstream-pr/15221 into main 2026-11-15 19:25:35 +00:00
JJenkx commented 2026-11-02 21:08:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-11-02T21:08:47Z.


What

Inflate HTTP/1.0 and HTTP/1.1 gzip responses using the shared gzip decoder on main. Deframe fixed-length, chunked or connection-close bodies before decoding, use one receive deadline for the full operation, and preserve the encoded/decoded size limits. With inflation disabled, expose wire bytes and original framing metadata. Existing HEAD/bodyless coverage is retained.

The branch is one topic commit on main, without merge commits. This refresh preserves main's Limit/ReceiveTimedOut handling, RequestFailure and sticky read-error behavior, and newer transport fixtures. The gzip fixture modes remain contiguous for the fixture's range predicates, and plaintext requests use the server's current URL helper. The shared gzip parser is unchanged. Remaining buffering, decoded-length and unmeasured console error-contract gaps remain in the existing debt entry.

Tested

Main 145e689adab572c44a99369516565d28e85f6c12; refreshed head 90875224f7d68da480ffb19bea6a06a387c7c631. Linux 7.2.14, Ryzen 9 7950X, GCC 16.2.1 Release.

  • ctest -R '^guest_http2' -V: main 14/14, change 15/15, zero skips. Includes all current main transport/cookie/authentication groups and the additional HTTP1 gzip group covering versions 1/2, fixed/chunked/close framing, split/large/empty bodies, concatenated members/optional headers, plaintext, inflation on/off and length before/after read. Existing cancellation/deadline coverage includes stalled gzip input with main's current timeout result.
  • Exact same final executable against frozen dependencies: replacing only libSceHttp2.prx with main's module fails at the missing HTTP1 gzip guard; the changed module passes. Fixture SHA-256 bdeecb01fde12802324587eb45b57b12223b09502f6763db191a71c564b5f72c is unchanged.
  • Whitespace and conventions pass against pinned main and origin/main. Clean merge against current main was verified before pushing. No unchanged-production-patch-ID claim: adapting to main's new typed deadlines changes the textual patch.
  • CPU loopback only. No refreshed Windows, title, GPU or FPS result is claimed; earlier reports retain their original source pins.

Reviewed build/CTest/JUnit, exact-module negative control, linkage proofs and source patch, SHA-256 c3a31250cd2cc20dbcaacf193c738123a02a2b4827c9b99c37d0a6b1ac70c519 (20810 bytes). Download and all 33 archive members verified.

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; silent stubs are listed in library technical debt
  • No notes, investigation files or images added to the repository
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none (#12305 and #15231 merged)
  • Fixes: none
  • Unblocks: none (synthetic transport coverage; no title unblock claimed)
  • GPUs tested: n/a (CPU-only transport change)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5127455933 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15221). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-11-02T21:08:47Z. --- ### What Inflate HTTP/1.0 and HTTP/1.1 gzip responses using the shared gzip decoder on main. Deframe fixed-length, chunked or connection-close bodies before decoding, use one receive deadline for the full operation, and preserve the encoded/decoded size limits. With inflation disabled, expose wire bytes and original framing metadata. Existing HEAD/bodyless coverage is retained. The branch is one topic commit on main, without merge commits. This refresh preserves main's `Limit`/`ReceiveTimedOut` handling, `RequestFailure` and sticky read-error behavior, and newer transport fixtures. The gzip fixture modes remain contiguous for the fixture's range predicates, and plaintext requests use the server's current URL helper. The shared gzip parser is unchanged. Remaining buffering, decoded-length and unmeasured console error-contract gaps remain in the existing debt entry. ### Tested Main `145e689adab572c44a99369516565d28e85f6c12`; refreshed head `90875224f7d68da480ffb19bea6a06a387c7c631`. Linux 7.2.14, Ryzen 9 7950X, GCC 16.2.1 Release. - `ctest -R '^guest_http2' -V`: **main 14/14, change 15/15, zero skips**. Includes all current main transport/cookie/authentication groups and the additional HTTP1 gzip group covering versions 1/2, fixed/chunked/close framing, split/large/empty bodies, concatenated members/optional headers, plaintext, inflation on/off and length before/after read. Existing cancellation/deadline coverage includes stalled gzip input with main's current timeout result. - **Exact same final executable** against frozen dependencies: replacing only `libSceHttp2.prx` with main's module fails at the missing HTTP1 gzip guard; the changed module passes. Fixture SHA-256 `bdeecb01fde12802324587eb45b57b12223b09502f6763db191a71c564b5f72c` is unchanged. - Whitespace and conventions pass against pinned main and `origin/main`. Clean merge against current main was verified before pushing. No unchanged-production-patch-ID claim: adapting to main's new typed deadlines changes the textual patch. - CPU loopback only. No refreshed Windows, title, GPU or FPS result is claimed; earlier reports retain their original source pins. [Reviewed build/CTest/JUnit, exact-module negative control, linkage proofs and source patch](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr15221-current145e-gzip9087-linux-20261112.tar.gz), SHA-256 `c3a31250cd2cc20dbcaacf193c738123a02a2b4827c9b99c37d0a6b1ac70c519` (20810 bytes). Download and all 33 archive members verified. ### Checklist - [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 - [x] Unimplemented paths throw; silent stubs are listed in library technical debt - [x] No notes, investigation files or images added to the repository - [x] New third-party code is a submodule built from source (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none (#12305 and #15231 merged) - [x] Fixes: none - [x] Unblocks: none (synthetic transport coverage; no title unblock claimed) - [x] GPUs tested: n/a (CPU-only transport change) - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!15221
No description provided.