feat(libSceNpWebApi2): implement sceNpWebApi2SetRequestTimeout #1527

Closed
Deses wants to merge 1 commit from upstream-pr/1527 into main
Deses commented 2026-10-08 11:14:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Deses on 2026-10-08T11:14:26Z.


What

Implements sceNpWebApi2SetRequestTimeout(int64_t requestId, uint32_t timeout) (NID TjAutbrkr60).

Requests are now tracked from sceNpWebApi2CreateRequest to sceNpWebApi2DeleteRequest. A live id is accepted with any timeout (microseconds, 0 included). An unknown or deleted id returns 0x80553406 (REQUEST_NOT_FOUND). The timeout is not stored: no request reaches the network, and SendRequest/ReadData fail immediately.

Signature and unit: Sony SDK 12.000 reference as mirrored in peterpuppy/bm (sce-np-web-api-2set-request-timeout.md), matching shadPS4 np_web_api2.cpp. Not checked against Sony's original. The default timeout, the valid range, when INVALID_ARGUMENT applies, and the library/user context checks (0x80553404/5) are not covered by any source; recorded in TechnicalDebt (Unknown function info).

Adds libSceNpWebApi2/CMakeLists.txt and GuestNpWebApi2 (live, unknown, deleted ids; deleting one request does not affect another).

Tested

Windows 11, MinGW-w64 GCC 15.2.0: ctest -R np_web_api2 passes; check_conventions.py and check_test_registration.py pass. No title run.

CI: the upstream runs for this head are waiting for approval (#1631). The same Build workflow ran on the fork for head 6fca7176: https://github.com/Deses/AnyPS5/actions/runs/37804397864, Linux and Windows (full build, libs, ctest) green.

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 (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4785898196 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1527). Originally posted by [Deses](https://github.com/Deses) on 2026-10-08T11:14:26Z. --- ### What Implements `sceNpWebApi2SetRequestTimeout(int64_t requestId, uint32_t timeout)` (NID `TjAutbrkr60`). Requests are now tracked from `sceNpWebApi2CreateRequest` to `sceNpWebApi2DeleteRequest`. A live id is accepted with any timeout (microseconds, 0 included). An unknown or deleted id returns 0x80553406 (`REQUEST_NOT_FOUND`). The timeout is not stored: no request reaches the network, and `SendRequest`/`ReadData` fail immediately. Signature and unit: Sony SDK 12.000 reference as mirrored in peterpuppy/bm (`sce-np-web-api-2set-request-timeout.md`), matching shadPS4 `np_web_api2.cpp`. Not checked against Sony's original. The default timeout, the valid range, when `INVALID_ARGUMENT` applies, and the library/user context checks (0x80553404/5) are not covered by any source; recorded in TechnicalDebt (Unknown function info). Adds `libSceNpWebApi2/CMakeLists.txt` and `GuestNpWebApi2` (live, unknown, deleted ids; deleting one request does not affect another). ### Tested Windows 11, MinGW-w64 GCC 15.2.0: `ctest -R np_web_api2` passes; `check_conventions.py` and `check_test_registration.py` pass. No title run. CI: the upstream runs for this head are waiting for approval (#1631). The same Build workflow ran on the fork for head `6fca7176`: https://github.com/Deses/AnyPS5/actions/runs/37804397864, Linux and Windows (full build, `libs`, ctest) green. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
klosixgaming-arch commented 2026-10-08 11:21:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-08T11:21:01Z.

Review: COMMENTED


This is a draft PR with an empty commit, as noted in the description. Once the implementation for sceNpWebApi2SetRequestTimeout lands, I'd be happy to review it. The approach of claiming the function early while working on it is good practice to avoid duplicate work.

Looking forward to seeing the actual implementation when ready!

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5455767417 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1527#pullrequestreview-5455767417). Originally posted by [klosixgaming-arch](https://github.com/klosixgaming-arch) on 2026-10-08T11:21:01Z. **Review:** COMMENTED --- This is a draft PR with an empty commit, as noted in the description. Once the implementation for `sceNpWebApi2SetRequestTimeout` lands, I'd be happy to review it. The approach of claiming the function early while working on it is good practice to avoid duplicate work. Looking forward to seeing the actual implementation when ready!
Deses commented 2026-10-08 11:37:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Deses on 2026-10-08T11:37:33Z.


@klosixgaming-arch done!! :)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6059019203 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1527#issuecomment-6059019203). Originally posted by [Deses](https://github.com/Deses) on 2026-10-08T11:37:33Z. --- @klosixgaming-arch done!! :)
oneandonlydean commented 2026-10-09 08:54:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:54:29Z.


Closing: same as #1207, no title is shown calling sceNpWebApi2SetRequestTimeout on main. Please reopen with the title ID and the log line if you find one (and without the SDK-reference link in TechnicalDebt).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077701251 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1527#issuecomment-6077701251). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T08:54:29Z. --- Closing: same as #1207, no title is shown calling `sceNpWebApi2SetRequestTimeout` on main. Please reopen with the title ID and the log line if you find one (and without the SDK-reference link in TechnicalDebt).

Pull request closed

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!1527
No description provided.