docs(libSceHttp): note the timeouts two titles pass to sceHttpWaitRequest #11503

Merged
milescoviello merged 1 commit from upstream-pr/11503 into main 2026-10-28 23:04:52 +00:00
milescoviello commented 2026-10-26 17:33:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-26T17:33:18Z.


What

The sceHttpWaitRequest entry in docs/dev/debt/libSceHttp.md assumes the timeout is in microseconds. Two titles' timeouts fit that reading. The entry now adds:

Two titles disassembled for this entry pass a stack event array and a small positive timeout: PPSA21564 01.007.000 (at 0x10A792A) one event and 10, PPSA34502 01.010.000 (0x717B8D) eight and 100000, which is 100 ms as microseconds but 100 s as milliseconds. Both treat a negative result as an error and 0 as no event

This isn't a measurement of the unit, just what the two callers pass. Neither passes a null array or a count below 1, so the assumed invalid-value errors aren't reached from them either.

Changed: docs/dev/debt/libSceHttp.md. No code change.

Method: the addresses are virtual addresses in each title's eboot.bin (unwrapped ELF, text at 0). Call sites were found through the import's PLT stub in the relinker output (app.elf, the same text moved up by 0x400000; the bytes at each site were checked against eboot.bin). The arguments and the branches on the result were read with objdump. This is static reading only: nothing was run on a console. The listings are game code and are not attached.

Tested

Documentation only. tools/check_conventions.py --base upstream/main passes. Not built, no title run.

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5021870348 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11503). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-26T17:33:18Z. --- ### What The `sceHttpWaitRequest` entry in `docs/dev/debt/libSceHttp.md` assumes the timeout is in microseconds. Two titles' timeouts fit that reading. The entry now adds: > Two titles disassembled for this entry pass a stack event array and a small positive timeout: PPSA21564 01.007.000 (at 0x10A792A) one event and 10, PPSA34502 01.010.000 (0x717B8D) eight and 100000, which is 100 ms as microseconds but 100 s as milliseconds. Both treat a negative result as an error and 0 as no event This isn't a measurement of the unit, just what the two callers pass. Neither passes a null array or a count below 1, so the assumed invalid-value errors aren't reached from them either. Changed: `docs/dev/debt/libSceHttp.md`. No code change. Method: the addresses are virtual addresses in each title's `eboot.bin` (unwrapped ELF, text at 0). Call sites were found through the import's PLT stub in the `relinker` output (`app.elf`, the same text moved up by 0x400000; the bytes at each site were checked against `eboot.bin`). The arguments and the branches on the result were read with `objdump`. This is static reading only: nothing was run on a console. The listings are game code and are not attached. ### Tested Documentation only. `tools/check_conventions.py --base upstream/main` passes. Not built, no title run. ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-26 17:50:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T17:50:54Z.

Review: APPROVED


Reviewed exact head 79fa8fb98c41d62af30ad5b84b6c7232108e6f43. The added title observations report the two call-site timeout values and event counts without claiming those values prove the unit; that distinction is accurate and useful next to the current implementation’s microsecond interpretation. The entry also keeps the title evidence explicitly static, not a console measurement. I did not independently inspect the proprietary title binaries or run a title.

Local conventions and git show --check pass. Hosted eligibility, conventions, intake and labels pass; product and relinker jobs skip this documentation-only change. No documentation defect found; approved.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5656553320 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11503#pullrequestreview-5656553320). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T17:50:54Z. **Review:** APPROVED --- Reviewed exact head `79fa8fb98c41d62af30ad5b84b6c7232108e6f43`. The added title observations report the two call-site timeout values and event counts without claiming those values prove the unit; that distinction is accurate and useful next to the current implementation’s microsecond interpretation. The entry also keeps the title evidence explicitly static, not a console measurement. I did not independently inspect the proprietary title binaries or run a title. Local conventions and `git show --check` pass. Hosted eligibility, conventions, intake and labels pass; product and relinker jobs skip this documentation-only change. No documentation defect found; approved.
THEMANnt commented 2026-10-28 10:50:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T10:50:10Z.

Review: APPROVED


Reviewed 79fa8fb98c41d62af30ad5b84b6c7232108e6f43 against author merge base 88795ed44801fa719eb2df990cbe1f11a1f9bd81 — approve the documentation change.

The positive timeout examples are consistent with the documented HTTP wait stub. The text retains the microsecond-unit assumption and does not claim that caller constants alone prove the console unit.

Validation: checked the submitted Markdown diff, pinned implementation references and relative links; git diff --check passed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5681435588 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11503#pullrequestreview-5681435588). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-28T10:50:10Z. **Review:** APPROVED --- Reviewed `79fa8fb98c41d62af30ad5b84b6c7232108e6f43` against author merge base `88795ed44801fa719eb2df990cbe1f11a1f9bd81` — approve the documentation change. The positive timeout examples are consistent with the documented HTTP wait stub. The text retains the microsecond-unit assumption and does not claim that caller constants alone prove the console unit. Validation: checked the submitted Markdown diff, pinned implementation references and relative links; `git diff --check` passed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.
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!11503
No description provided.