Rebased onto main after the WebSocket request work landed; keeps
both constant sets and the async-unsupported module error.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
With APS5_NET_DISCONNECTED set, the offline completion now carries 0x80431063, libSceHttp's network error, instead of 0x80436063, which matched no documented code. sceHttp2SendRequest follows the same switch and returns that error without connecting, so sync and async sends agree. The test checks the sync result and that the equeue fired once instead of pinning the empty wait's throw, and ENVIRONMENT.md lists the libSceHttp2 effect of the switch.
A PS5 on system software 12.40 answers sceHttp2Init with libSceSsl's
INVALID_ID (0x8095F006) for SSL context id 0, a pool id and pool size
it otherwise accepts, and one concurrent request.
Resolve the HTTP/1.x transport merge (#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>
Resolve core/libs/tests/GuestHttp2Transport.cpp: keep both sides' Mode values (all before EarlyFinal) and run the cookie-box tests before main's handshake tests, which replace the old Failure(ssl, Mode::Normal, true) call.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps main's redirect scenarios in GuestHttp2Transport.cpp next to this
branch's cookie box modes and scenarios.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
libSceHttp2.sprx (firmware 13.40) returns 0x817B11FE for a null text or data, together with the non-null option check, before it looks the request id up; the flags, data size and async option are not checked before the connection check. Read from the module, not measured on a console.
sceHttp2SetMinSslVersion returns 0 for versions 2 (SSL 3.0) to 5 (TLS 1.2)
on a template or an unsent request: the range libSceSsl's
sceSslSetMinSslVersion takes on a 13.40 console (docs/dev/debt/libSceSsl.md).
The floor is not kept, as libSceSsl negotiates TLS 1.2 only, which meets
every accepted floor. Versions 0, 1 and above 5 still throw, as do context
and cookie-box ids and sent requests; unknown and deleted ids still return
0x817B1100.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The transport read and stored a bound box's cookies under the request's
state mutex, and the box lookup took the handles mutex, while deleting a
request holds the handles mutex and waits for that state mutex. The cookie
module now records live boxes itself, so the lookup no longer needs the
handles mutex.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sceHttp2SetCookieBox and sceHttp2GetCookieBox follow an emulator run of
the firmware 13.42 module: templates and requests take a live box or 0,
other ids and unknown boxes return the invalid-id error, a new request
copies its template's box, and the getter checks a null output first.
A request with a bound box sends the box's matching cookies and stores
every Set-Cookie of the response in the box.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep the auth and auto-redirect flags, headers and the auth-info and
pre-send callbacks in Http2::Settings, so requests copy them from their
template and they freeze once transport exists. Accepted kinds, error
codes and their order follow the firmware 13.42 module as reported in
the review: option, header and callback calls reject contexts and
cookie boxes, sceHttp2AuthCacheFlush validates the context,
sceHttp2RedirectCacheFlush ignores its argument and the auto-redirect
flag keeps the stored int.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QdXm6rjuENJGYLZh5hc8cQ