Skip to content

test(libSceHttp): check sceHttpCreateConnection, sceHttpCreateRequest and sceHttpCreateRequestWithURL2 - #27192

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
milescoviello:test/http-create-named-children
Nov 26, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
milescoviello:test/http-create-named-children

Conversation

@milescoviello

Copy link
Copy Markdown
Contributor

What

guest_http_options builds every connection and request with sceHttpCreateConnectionWithURL and sceHttpCreateRequestWithURL, so no test called sceHttpCreateConnection, sceHttpCreateRequest or sceHttpCreateRequestWithURL2. Four of the titles I run import sceHttpCreateRequestWithURL2.

Build a connection and two requests with them from a template that has authentication and a raw cookie value set. Check that each gets a new id and takes its parent's options, and that changing one request leaves its sibling and its connection as they were.

Test only; no source change.

Tested

Linux (Ubuntu 26.04.1, GCC 15.2, Ninja, Release), on main dc956738fd:

  • guest_http_options passes in 3 of 3 runs.
  • With sceHttpCreateConnection changed to give its connection no parent options (AddHttpChild(id, 0)), it fails in 3 of 3 runs, at the new check (a connection or request did not take its parent's options).

Windows 11 VM (WinLibs GCC 16.2.0, Release), the same head: guest_http_options passes in 3 of 3 runs.

tools/check_conventions.py --base upstream/main passes.

#24528 (AlfaRojo) also edits core/libs/tests/GuestHttpOptions.cpp; this branch and its head 81b4bc374f merge without conflicts.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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 (CPU-only change)
  • AI-assisted: yes

… and sceHttpCreateRequestWithURL2

guest_http_options builds every connection and request with
sceHttpCreateConnectionWithURL and sceHttpCreateRequestWithURL, so no
test called sceHttpCreateConnection, sceHttpCreateRequest or
sceHttpCreateRequestWithURL2. Four of the titles I run import
sceHttpCreateRequestWithURL2.

Build a connection and two requests with them from a template that has
authentication and a raw cookie value set. Check that each gets a new
id and takes its parent's options, and that changing one request leaves
its sibling and its connection as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — looks good

Nothing blocks this change; the reviewed code supports merging.

What I ran

Reviewed head 39d14e3ac74657fba9a9eb1bfda25b5d8f0f8d07. Read the prepared diff and the full changed file, then inspected the relevant HTTP export implementations. No tests or build commands were run.

Results

Check Result Note
Changed code review passed New checks cover the named creation APIs and option inheritance.
Tests and build not run No commands were run.

Findings

Blocking

None.

Non-blocking

None.

Not verified

The author reports Linux and Windows test runs and a passing conventions check; these were not run during this review. No console behavior was verified.

To get this to a good state

Nothing is required.

@oneandonlydean
oneandonlydean merged commit 1ec7889 into boykopovar:main Nov 26, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants