Commit Graph
76 Commits
Author SHA1 Message Date
Dean 9172d86373 Merge pull request #15996 from akkadbakkad89/feat/http2-async-exports
feat(libSceHttp2): return module error for ReadDataAsync and validate WaitAsync
2026-11-09 12:21:18 +13:00
akkadbakkad89andDevin dbfc4a8d4e feat(libSceHttp2): return module error for ReadDataAsync and validate WaitAsync
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>
2026-11-08 12:43:41 +05:30
zaryabzip f091e30e4d Merge branch 'main' of https://github.com/boykopovar/AnyPS5 into fix/http2-init-ssl-id-zero
# Conflicts:
#	core/libs/prx/libSceHttp2/Export.cpp
2026-11-08 07:46:11 +05:00
Dean Galvin ed7f25fdd9 fix(libSceHttp2): use libSceHttp's network error offline and fail sync sends too
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.
2026-11-08 13:15:47 +13:00
Dean Galvin cf6d1feef0 Merge branch 'main' 2026-11-08 12:56:56 +13:00
zaryabzip 35a998f191 Merge branch 'main' of https://github.com/boykopovar/AnyPS5 into fix/http2-init-ssl-id-zero
# Conflicts:
#	core/libs/prx/libSceHttp2/Export.cpp
2026-11-07 00:38:48 +05:00
frankea 71749a8aa8 Merge remote-tracking branch 'origin/main' into feat/http2-websocket-requests 2026-11-06 10:22:21 -05:00
camezaro-intc 3f9ee464dc fix(libSceHttp2): serialize async completion publication and update debt entry 2026-11-06 08:04:12 -06:00
camezaro-intc 7287d9181a feat(libSceHttp2): complete async requests offline when disconnected 2026-11-05 23:31:37 -06:00
frankea 76bd64f609 Merge remote-tracking branch 'origin/main' into feat/http2-websocket-requests
# Conflicts:
#	core/libs/prx/libSceHttp2/Export.cpp
#	core/libs/tests/GuestHttp2.cpp
2026-11-05 22:47:03 -05:00
Eduardo Ruiz d2e283bee6 feat(http2): serialize the trailing header block 2026-11-06 00:01:58 +01:00
Dean Galvin cb665e7d8e Merge branch 'main' into feat/http2-websocket-requests 2026-11-05 17:02:56 +13:00
zaryabzip 56f44173c0 fix(libSceHttp2): refuse SSL context id 0 in sceHttp2Init
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.
2026-11-05 06:54:40 +05:00
BunnyFlandClaude Opus 5.5 760eba6585 Merge upstream/main into fix/http2-cookie-box-binding
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>
2026-11-04 06:43:44 +01:00
BunnyFlandClaude Opus 5.5 1897b26943 Merge upstream/main into fix/http2-cookie-box-binding
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>
2026-11-04 05:25:14 +01:00
JJenkx 3f9c054d18 feat(http2): support synchronous HTTP/1.0 and HTTP/1.1 requests 2026-11-03 16:45:25 -05:00
BunnyFlandClaude Opus 5.5 8a5f9e2706 Merge upstream/main into fix/http2-cookie-box-binding
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>
2026-11-02 11:59:15 +01:00
Dean 792caaf6dd Merge pull request #11575 from JJenkx/feat/http2-redirect-callbacks
feat(http2): deliver redirect callbacks and follow HTTPS redirects
2026-11-02 23:29:05 +13:00
JJenkx 2de2bfe764 feat(http2): deliver TLS certificate verification callbacks 2026-11-01 20:17:24 -05:00
JJenkx 59bc5a8f19 feat(http2): deliver redirect callbacks and follow HTTPS redirects 2026-11-01 20:17:24 -05:00
SnekPolylepisandClaude Opus 5.5 754aad4e9c fix(libSceHttp2): accept SSL options on a context
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 22:01:22 +01:00
JJenkx 6ae1f9381b fix(http2): compose gzip with callback and HTTP1 transport 2026-10-30 19:01:44 -04:00
BunnyFlandClaude Opus 5.5 77c3d1d379 Merge upstream/main into fix/http2-cookie-box-binding
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 18:43:08 +01:00
frankea da8fbc6c44 Merge remote-tracking branch 'origin/main' into feat/http2-websocket-requests 2026-10-30 11:42:10 -04:00
frankea 59b3d54765 fix(http2): reject a null WebSocket text or data before the request id
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.
2026-10-30 11:42:10 -04:00
edubox 9624b77bc6 feat(http2): inflate gzip response bodies 2026-10-30 13:31:03 +01:00
JJenkx 5f18e5abe7 fix(http2): retain callback chain with current main import inventory 2026-10-30 08:22:57 -04:00
Dean e49f8c380c Merge pull request #11769 from oneandonlydean/salvage/web-misc-9485
feat(prx): declare 46 PS5 3.20 exports in four libraries
2026-10-31 01:16:48 +13:00
JJenkx e069fd2308 fix(http2): integrate current main and preserve callback parent order 2026-10-30 07:37:48 -04:00
milescovielloandClaude Opus 5.5 bb2620548c refactor(libSceHttp2): keep the lookup hook in the transport header
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 00:33:35 +01:00
milescovielloandClaude Opus 5.5 200e1c0f7c test(libSceHttp2): count the lookups of a retried and an exhausted resolve
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 00:33:35 +01:00
milescovielloandClaude Opus 5.5 d986a418ad fix(libSceHttp2): retry a failed lookup the number of times sceHttp2SetResolveRetry sets
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 00:33:35 +01:00
frankea e8cbc8f661 Merge remote-tracking branch 'origin/main' into feat/http2-websocket-requests
# Conflicts:
#	core/libs/prx/libSceHttp2/CMakeLists.txt
#	core/libs/prx/libSceHttp2/Export.cpp
#	core/libs/tests/GuestHttp2.cpp
#	docs/dev/debt/libSceHttp2.md
2026-10-29 11:30:15 -04:00
Lindamea1andClaude Opus 5.5 677da22471 feat(libSceHttp2): implement sceHttp2SetMinSslVersion for versions 2 to 5
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>
2026-10-28 23:16:31 +00:00
Adrià 3b362ba2e0 Merge pull request #11730 from ionut27001/fix/http2-init-zero-concurrency
fix(libSceHttp2): return invalid value from sceHttp2Init for a maximum of 0 requests as measured in a PS5 payload
2026-10-28 17:45:01 +01:00
Adrià e694001109 refactor(libSceHttp2): use ERROR_INVALID_VALUE in sceHttp2Init 2026-10-28 10:03:00 +01:00
ionut27001 7db98b9058 fix(libSceHttp2): return invalid value from sceHttp2Init for a maximum of 0 requests as measured in a PS5 payload 2026-10-28 10:02:57 +01:00
BunnyFlandClaude Opus 5.5 bbef95bb68 fix(libSceHttp2): keep cookie box lookups off the handles mutex
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>
2026-10-27 15:59:56 +01:00
BunnyFlandClaude Opus 5.5 96603d9851 feat(libSceHttp2): bind cookie boxes to templates and requests
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>
2026-10-27 15:59:15 +01:00
milescoviello a45f140d85 Merge remote-tracking branch 'upstream/main' into fix/http2-memory-pool-stats
# Conflicts:
#	docs/dev/debt/libSceHttp2.md
2026-10-27 13:06:25 +00:00
Dean Galvin 9b1ef9e496 merge: main into salvage/web-misc-9485
# Conflicts:
#	docs/dev/debt/libSceHttp2.md
2026-10-27 19:32:30 +13:00
milescovielloandClaude Opus 5.5 04db088075 fix(libSceHttp2): report a live context's pool size from sceHttp2GetMemoryPoolStats
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 22:43:01 +00:00
JJenkx d847910c69 feat(http2): deliver redirect callbacks and follow HTTPS redirects 2026-10-26 17:01:43 -04:00
noamrogerandClaude Opus 5.5 bffc7eda85 feat(libSceHttp2): implement request option getters, header removal and callbacks
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
2026-10-26 20:53:23 +00:00
noamrogerandClaude Opus 5.5 98be52cd38 feat(libSceHttp2): store cookies in cookie boxes
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VcCKPwMu3oNWaS8AUph6MW
2026-10-26 20:10:35 +01:00
Felipebmaitan d07024f3cf fix(http2): accept early responses and initialize Windows DNS 2026-10-26 13:10:57 -03:00
Felipebmaitan 3c4a8eb512 fix(http2): bound uploads and quiesce requests during teardown 2026-10-26 13:10:56 -03:00
Felipebmaitan db57916260 feat(http2): send synchronous HTTP/2 requests over TLS 2026-10-26 13:10:56 -03:00
frankea 3d7e2d2dcb feat(libSceHttp2): create WebSocket requests and answer them as a PS5 does before they connect 2026-10-26 09:33:17 -04:00
xdCloudy d113619d4d fix(prx): register known pending exports by NID 2026-10-24 16:35:15 -07:00