Commit Graph
70 Commits
Author SHA1 Message Date
Adrià c45240fb87 Merge pull request #16772 from szambonurek-88/fix/http-epoll-unwritable-pointers
fix(libSceHttp): reject unwritable pointers in sceHttpCreateEpoll
2026-11-11 11:28:39 +01:00
szambonurek-88 f1af96643b fix(libSceHttp): reject unwritable pointers in sceHttpCreateEpoll 2026-11-10 13:59:51 +01:00
Dean b5a9a4781c Merge pull request #16117 from Milos-Opletal/feat/http-set-delay-build-request
feat(libSceHttp): implement sceHttpSetDelayBuildRequestEnabled
2026-11-09 12:21:22 +13:00
Milos-Opletal 1872c1126f feat(libSceHttp): implement sceHttpSetDelayBuildRequestEnabled 2026-11-07 14:58:22 +01:00
Ondra97 693e4bce1a fix(http): roll back all context registries after allocation failure 2026-10-30 17:31:38 +01:00
Ondra97 3ca3532a3a fix(http): use canonical declarations in allocation regression 2026-10-30 17:29:28 +01:00
Yunus Shaikh 748f2b3bdd feat(libSceHttp): report the ids sceHttpInit registered for a context
sceHttpGetRegisteredCtxIds writes the libnet memory pool id and the SSL
context id the context was created with, in the order of its recovered
prototype. With no live context it returns BEFORE_INIT and for an
unknown or terminated id INVALID_ID, as sceHttpGetMemoryPoolStats does;
a null output throws.
2026-10-25 07:47:43 +00:00
boykopovar 35cf8d56cd refactor(sdk): add canonical headers for core libraries 2026-10-24 23:17:37 +03:00
Adrià a39be6252d Merge pull request #8357 from MarrasFederico/feat/http-memory-pool-stats
feat(libSceHttp): report a context's pool in sceHttpGetMemoryPoolStats
2026-10-24 12:48:06 +02:00
Dean Galvin 57bf968aa3 Merge main into feat/http-cookie-enabled-option 2026-10-23 14:37:47 +13:00
Dean 2e0c9251df Merge pull request #9405 from MarcZX10/feat/http-auth-enabled-option
feat(libSceHttp): implement auth-enabled option state
2026-10-23 14:22:37 +13:00
Federico Marras 73822f3fea Merge commit '3ca07d086d5f44fbe3c00370e7f03953ab46ca1b' into feat/http-memory-pool-stats 2026-10-22 15:42:59 +02:00
MarcZX10 94ea385b51 feat(libSceHttp): implement cookie-enabled option state 2026-10-22 13:31:21 +00:00
MarcZX10 0aac538d00 fix(libSceHttp): keep auth option PR scoped 2026-10-22 13:31:21 +00:00
MarcZX10 13eea0a93f feat(libSceHttp): implement request header removal stub 2026-10-22 13:31:21 +00:00
MarcZX10 eb7ed110b5 feat(libSceHttp): implement auth-enabled option state 2026-10-22 13:31:21 +00:00
Ondra97 4c7b482f3e Merge remote-tracking branch 'origin/main' into codex/pr9630-review-fix-20261022 2026-10-22 09:03:48 +02:00
Yossi Yadgar 008a78aa2c feat(libSceHttp): check the arguments of sceHttpSetProxy 2026-10-22 08:26:07 +03:00
Federico Marras 83be1aae7d Merge remote-tracking branch 'upstream/main' into feat/http-memory-pool-stats
# Conflicts:
#	core/libs/prx/libSceHttp/Export.cpp
#	docs/dev/debt/libSceHttp.md
2026-10-22 07:05:11 +02:00
Ondra97 c510a410a6 fix(http): preserve context and epoll state on allocation failure 2026-10-22 06:59:31 +02:00
boykopovar bd7a73eb58 fix(http): restore cookie and socket callback signatures 2026-10-21 21:51:39 +03:00
boykopovar f0e10376bb fix(http): restore epoll and diagnostic query signatures 2026-10-21 21:50:49 +03:00
boykopovar adb500a3c1 fix(http): recover the cookie statistics layout 2026-10-21 21:47:19 +03:00
boykopovar 2239c0b717 fix(http): recover request metadata and memory stats signatures 2026-10-21 21:45:01 +03:00
boykopovar 35943b3e7b fix(http): recover cookie buffer and limit signatures 2026-10-21 21:45:01 +03:00
boykopovar 5266e7f770 fix(http): recover cache and request option stub signatures
verify argument widths against the local system module, including the four-register auth cache export and four-byte option outputs. keep every throwing stub body unchanged.
2026-10-21 21:44:51 +03:00
Adrià d099bc6cd8 Merge pull request #8245 from YossiYad/feat/http-object-options
feat(libSceHttp): keep options per template, connection and request and implement their getters
2026-10-21 14:04:15 +02:00
Dean 1bcaa14234 Merge pull request #8307 from hypermoist/fix/libs-console-results-part2
fix(libs): return what the firmware returns from 31 more calls it does not implement
2026-10-21 20:57:00 +13:00
Yossi Yadgar ede0124063 fix(libSceHttp): refuse the option calls before init and sceHttpSetEpoll for a handle that is not an epoll
The last sceHttpTerm now ends every template, connection and request's options, so a stale id is refused after the next sceHttpInit.
2026-10-21 09:36:43 +03:00
orezraeyandClaude Opus 5.5 a8c5db1be9 fix(libSceHttp): bound and return sceHttpParseResponseHeader's value as measured on a PS5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 20:19:58 -03:00
Federico Marras 849bc36362 feat(libSceHttp): report a context's pool in sceHttpGetMemoryPoolStats 2026-10-20 12:58:42 +02:00
hypermistandClaude Opus 5.5 db25758397 fix(libs): return what the firmware returns from 29 more calls it does not implement
The NetCtl ApRp calls, the SaveData debug calls, HttpDbgEnableProfile,
HttpDbgSetPrintf, PadEnableExtensionPort and VideoRecording Init, Term
and SendCommand return 0; ImeForTestFunction returns 0x80BC00FF; the Hmd
distortion work memory align and size are 0x400 and 0x20000 and
DistortionGetCompoundEyeCorrectionCommand returns 0x81110009;
AjmInstanceCodecType returns the instance id shifted right by 14.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
2026-10-20 22:38:57 +13:00
Yossi Yadgar c0f8251a4b feat(libSceHttp): accept the redirect cache, private SSL and forced abort calls
Without a network these change nothing, so they check their arguments and return 0, and the debt file lists them as silent stubs.
2026-10-20 09:37:17 +03:00
Yossi Yadgar 2525578179 feat(libSceHttp): implement sceHttpGetEpoll
sceHttpSetEpoll and sceHttpUnsetEpoll now keep and clear the object's epoll and argument, which sceHttpGetEpoll returns.
2026-10-20 09:36:03 +03:00
Yossi Yadgar 32f0a809be feat(libSceHttp): implement the Accept-Encoding gzip switches
sceHttpSetDefaultAcceptEncodingGZIPEnabled sets the value templates of that context start with; sceHttpSetAcceptEncodingGZIPEnabled and sceHttpGetAcceptEncodingGZIPEnabled set and read it per object.
2026-10-20 09:35:20 +03:00
Yossi Yadgar 585e42bcab feat(libSceHttp): implement sceHttpGetNonblock and the Try variants of the nonblocking switch 2026-10-20 09:34:26 +03:00
Yossi Yadgar ac6ceb0b55 feat(libSceHttp): keep redirect options per object and implement sceHttpGetAutoRedirect
Templates, connections and requests now each keep their options, copied from the parent when they are created, so sceHttpSetAutoRedirect is no longer dropped and sceHttpGetAutoRedirect returns it.
2026-10-20 09:33:53 +03:00
Yuri Olive 7d9d41c3db feat(libSceHttp): export missing firmware interfaces 2026-10-19 14:55:42 -03:00
Anton Ermolaev 4450bafec8 fix(libSceHttp): add authentication and cookie cache flush exports 2026-10-19 12:07:02 +05:00
Adrià 1be2ca2028 Merge pull request #3706 from MarcZX100/codex/http-abort-wait-3156
feat(libSceHttp): implement abortable epoll waits
2026-10-11 23:53:59 +02:00
LightStorm72 1d5f699439 fix(libSceHttp): return an empty CA list from sceHttpsGetCaList/sceHttpsFreeCaList 2026-10-11 23:15:05 +02:00
MarcZX100 776cff0efb fix(libSceHttp): use native Windows condition waits
Use an SRW lock and native Windows condition variable for epoll waits, preserving the shared handle lifecycle. This avoids the scheduler-tick overshoot measured with std::condition_variable on Windows.

Suggested-by: winstrex
2026-10-11 15:40:29 +00:00
David 4c7d83a2bf feat(libSceHttp): implement sceHttpAbortWaitRequest and the unlimited sceHttpWaitRequest
Deathloop (PPSA01670) imports sceHttpAbortWaitRequest; Planet Coaster
(PPSA01736) and Palworld import sceHttpWaitRequest.

Epoll handles are kept in a registry with an abort flag, a destroyed flag
and a condition variable. A wait with a negative timeout blocks until
sceHttpAbortWaitRequest, sceHttpDestroyEpoll or the sceHttpTerm of the
last context wakes it; a bounded wait still returns 0 events. An abort
stays set and makes every later wait return SCE_HTTP_ERROR_ABORTED
(0x80431080); a wait woken by destroy or term returns 0 events.
sceHttpDestroyEpoll no longer frees a handle a waiter is blocked on.
sceHttpInit registers its context, and the epoll calls and sceHttpTerm
return BEFORE_INIT without a live context and INVALID_ID for an unknown
context or handle.

Behaviour and error codes: shadPS4 src/core/libraries/network/http.cpp
and http_error.h at a8a70da595da2a96e0410309472ba4a7eb558144.
Signature (void* eh): Orbital tools/ida/db_types.json at
b321fcdbd700cc02da1cb1ad25412781d5ec73c6 and SharpProspero
src/SharpProspero/Interop/Net/Http.cs at
60977b29103452b9681ae10c7a9011d44965bf16.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit 766997df3f8329fd6e8e7aac2b5d83daf88c8292)
2026-10-11 15:40:17 +00:00
tototomate123 63d29116b4 fix(http): retain request status callbacks with the guest ABI 2026-10-11 07:36:46 +02:00
Hannah Lyons e203c43221 feat(libSceHttp): accept sceHttpSetRecvBlockSize 2026-10-10 12:40:55 -04:00
Pouare514 998016e789 fix(libs): drop stubs now owned by main after rebase 2026-10-09 20:13:56 +02:00
Pouare514 b6c70b1135 fix(libs): rename loader stubs to recomputed real names, drop clashing ones 2026-10-09 20:12:31 +02:00
Pouare514 e96ec6da7d feat(libs): Deathloop loading support (Ampr, NetCtlApDialog, Party + stubs) 2026-10-09 20:11:35 +02:00
Dean 812c86cde7 Merge pull request #1481 from awake-devel/feat/http-auth-info-callback
feat(http): accept sceHttpSetAuthInfoCallback
2026-10-09 21:03:15 +13:00
MathiasDevelopesandClaude Opus 5.5 485eb1aedd fix(libSceHttp): sceHttpWaitRequest reports no ready requests
It returned the network error, which titles that poll their epoll treat
as fatal. No request is ever pending, since sending fails at once, so the
wait now times out with no events; an infinite wait throws.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 20:48:20 +02:00