fix(libSceHttp2): return the console's codes for HTTP/2 stream errors, TLS deadlines and deleted requests #18824
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18824"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by kali113 on 2026-11-12T11:33:16Z.
What
Follow-up to #17735 (merged): the cases its debt entry still listed as throwing, now measured on a PS5 payload, firmware 13.590.001, against servers on the LAN (raw output kept; addresses redacted below).
0x817B120A + e0x817B120A0x817B122A + e0x817B12320x817B10640x804101360x817B10640x817B12230x817B1222at about 1.2 s0x817B1222http://and HTTPS/1.1)0x817B10640x817B1080Changes:
Transport.cpp:0x817B120A + eand0x817B122A + efor e of 0 to 13. They are keyed on a received frame, so streams nghttp2 closes itself still throw. A received RST_STREAM CANCEL after the headers fails the next read with0x817B1232.0x817B1064before the headers and0x80410136after them. A TLS reset before the headers returns0x817B1064.0x817B1223. The handshake is bounded by the receive timeout, and an HTTP/2 upload ends at whichever of the send and receive timeouts comes first.0x817B1064.0x817B1080.sceHttp2Termduring an operation, deleting a request from its own SSL callback, an invalid chunk size, and resolve timeouts. Resolve timeouts were measured but are not modelled. With no DNS answer, the console failed with0x804101E2after 30 s with the default or a 1 s timeout, also with retry 0, sending queries at 0, 2, 6 and 14 s. With a 5 s timeout it sent them at 0, 5, 15, 35 and 75 s and returned nothing in 90 s. This is now in the deadlines debt entry.docs/dev/debt/libSceHttp2.md: the measured-failures and deadline entries are rewritten, and there is a new HTTP/2 stream-errors entry.Overlaps (from
tools/pr_overlap.py): #11630, #15221, #16231 and #18378 touch neighbouring lines. These are theModeenum,ReleaseOwnedHandlesand the chunk-size line, and none of them implements these cases. #14212 and #17938 conflict withmainand could not be compared.Tested
ctest -R '^guest_http2'passes 14 of 14, run twice. The new cases cover GOAWAY and RST_STREAM codes 0 to 14 (14 throws), peer close before and after the headers, RST_STREAM CANCEL after the headers, the handshake bounded by the receive timeout but not by connect or send, the HTTP/2 upload receive timeout, the HTTPS/1.1 send timeout and reset, the HTTPS/1.1 short body, and cut chunked bodies overhttp://and TLS.main'sTransport.cpp,Transport.hppandExport.cppand the new tests,guest_http2_transportandguest_http2_http1abort at the first new case.python3 tools/check_conventions.py --base origin/mainpasses.Http1Cancellationgives its receive-timeout check 400 ms instead of 80 ms. The receive timeout now bounds the TLS handshake, as on the console, and with 80 ms the TLS handshake failed in the emulated (x86-64 on arm64) Docker build. The cancellation tests also accept0x817B1080for a deleted request or template, and still accept0x817B1100when the deletion lands before the call starts.00e3206939.guest_http2_transportaborted inCloseBodybecause the test server's close went out as a TCP reset on Windows.1bb8e206c4makes that server send a FIN. Not re-run on Windows yet.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)Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-12T11:33:38Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.