feat(libSceHttp2): export sceHttp2WebSocketSetPingInterval #3319

Merged
pushkarreddyy merged 2 commits from upstream-pr/3319 into main 2026-10-11 08:22:11 +00:00
pushkarreddyy commented 2026-10-11 07:23:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-11T07:23:59Z.


What

Export sceHttp2WebSocketSetPingInterval (YfaXPnc8PJE) in libSceHttp2 (core/libs/prx/libSceHttp2/Export.cpp).

  • Added alongside existing WebSocket stubs in libSceHttp2.
  • Accepts request handle and ping interval in milliseconds, returning 0 without network activity in offline HTTP stack.
  • Unit test added in core/libs/tests/GuestHttp2.cpp.
  • Documented in docs/dev/TechnicalDebt.md#silent-stubs.

Resolves start-up failure in Palworld (PPSA23126, Issue #2648) where bundled libdiscord_partner_sdk.prx halts with:
FAIL: unresolved ELF import YfaXPnc8PJE from libSceHttp2.prx

Tested

  • Windows 11, unit test in guest_http2_tests exercising sceHttp2WebSocketSetPingInterval.
  • python tools/check_conventions.py --base 1690db9a2 passes with zero findings.
  • git diff --check passes with zero whitespace issues.

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:4817373075 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3319). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-11T07:23:59Z. --- ### What Export `sceHttp2WebSocketSetPingInterval` (`YfaXPnc8PJE`) in `libSceHttp2` (`core/libs/prx/libSceHttp2/Export.cpp`). - Added alongside existing WebSocket stubs in `libSceHttp2`. - Accepts request handle and ping interval in milliseconds, returning 0 without network activity in offline HTTP stack. - Unit test added in `core/libs/tests/GuestHttp2.cpp`. - Documented in `docs/dev/TechnicalDebt.md#silent-stubs`. Resolves start-up failure in Palworld (`PPSA23126`, Issue #2648) where bundled `libdiscord_partner_sdk.prx` halts with: `FAIL: unresolved ELF import YfaXPnc8PJE from libSceHttp2.prx` ### Tested - Windows 11, unit test in `guest_http2_tests` exercising `sceHttp2WebSocketSetPingInterval`. - `python tools/check_conventions.py --base 1690db9a2` passes with zero findings. - `git diff --check` passes with zero whitespace issues. ### 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
github-actions[bot] commented 2026-10-11 07:25:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T07:25:57Z.


Progress report (05c870c → cfb372a)

📉 System libraries: 85.54% (-0.02%, +1 declared functions)

🆕 1 declared as stubs
Library Name
libSceHttp2 sceHttp2WebSocketSetPingInterval
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106660227 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3319#issuecomment-6106660227). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T07:25:57Z. --- <!-- progress-report --> ### Progress report (05c870c → cfb372a) 📉 **System libraries**: 85.54% (-0.02%, +1 declared functions) <details> <summary>🆕 1 declared as stubs</summary> | Library | Name | | - | - | | libSceHttp2 | `sceHttp2WebSocketSetPingInterval` | </details>
github-actions[bot] commented 2026-10-11 07:26:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T07:26:03Z.


Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106661036 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3319#issuecomment-6106661036). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T07:26:03Z. --- Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
pushkarreddyy commented 2026-10-11 07:32:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-11T07:32:47Z.


The intake check closed this automatically. @adriadam10 @oneandonlydean @MarcZX100: Could one of you please reopen or carry this when convenient? It exports sceHttp2WebSocketSetPingInterval (YfaXPnc8PJE) in libSceHttp2, resolving the unhandled ELF import halting Palworld (PPSA23126, issue #2648) in libdiscord_partner_sdk.prx. It is cleanly rebased and mergeable onto current main (bd0692590) with Mergeable: True, documented in TechnicalDebt.md#silent-stubs, and passes all conventions and unit tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106711896 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3319#issuecomment-6106711896). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-11T07:32:47Z. --- The intake check closed this automatically. @adriadam10 @oneandonlydean @MarcZX100: Could one of you please reopen or carry this when convenient? It exports `sceHttp2WebSocketSetPingInterval` (`YfaXPnc8PJE`) in `libSceHttp2`, resolving the unhandled ELF import halting *Palworld* (PPSA23126, issue #2648) in `libdiscord_partner_sdk.prx`. It is cleanly rebased and mergeable onto current `main` (`bd0692590`) with `Mergeable: True`, documented in `TechnicalDebt.md#silent-stubs`, and passes all conventions and unit tests.
oneandonlydean commented 2026-10-11 08:04:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T08:04:52Z.


Reopened. The signature is unknown, so please make it throw like the four WebSocket exports above it (Export.cpp:295-312), and move the TechnicalDebt note to "Unknown function info": imported by PPSA23126's libdiscord_partner_sdk.prx.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106954337 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3319#issuecomment-6106954337). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T08:04:52Z. --- Reopened. The signature is unknown, so please make it throw like the four WebSocket exports above it (`Export.cpp:295-312`), and move the TechnicalDebt note to "Unknown function info": imported by PPSA23126's `libdiscord_partner_sdk.prx`.
adriadam10 commented 2026-10-11 08:19:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:19:18Z.


Applied @oneandonlydean's request as our own commit:

  • sceHttp2WebSocketSetPingInterval now throws via NotImplemented_nid_no_patch, like the other WebSocket exports (signature unknown, so no invented parameters).
  • GuestHttp2.cpp pins the throw instead of == 0.
  • TechnicalDebt note moved from "Silent stubs" to "Unknown function info" (imported by PPSA23126, #2648).

Checked guest_http2 passes; without the export the test does not link. Merging once CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107063903 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3319#issuecomment-6107063903). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T08:19:18Z. --- Applied @oneandonlydean's request as our own commit: - `sceHttp2WebSocketSetPingInterval` now throws via `NotImplemented_nid_no_patch`, like the other WebSocket exports (signature unknown, so no invented parameters). - `GuestHttp2.cpp` pins the throw instead of `== 0`. - TechnicalDebt note moved from "Silent stubs" to "Unknown function info" (imported by PPSA23126, #2648). Checked `guest_http2` passes; without the export the test does not link. Merging once CI is green.
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!3319
No description provided.