fix(libSceRudp): correct End and Terminate functions #3973
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3973"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T20:17:40Z.
What
Carries David's
sceRudpEnd/sceRudpTerminatecorrection from issue #3445, preserving his implementation commit author.sceRudpEnd()shuts down the library and clears its contexts;sceRudpTerminate(ctx_id)releases one context. The function names and argument counts were reversed in the previous implementation.Updates the context-query and pump tests to call the corrected functions, retaining the newer
sceRudpGetMaxSegmentSizecoverage from currentmain.The implementation is supported by the console measurements in #3073 and matching declarations/behavior in Orbital, RPCS3, and Vita3K. The unrelated RUDP exports from #3445 are not included.
Tested
guest_rudp_status_testsandguest_offline_imports_tests(2/2); this result is from the pre-rebase head.e013f8c9c:guest_rudp_status,guest_rudp_context_queries,guest_rudp_pump, andguest_offline_importspassed. This is not a run of the current rebased head.git diff --check upstream/main...HEADpassed. No build or runtime tests were run after the latest rebase ontomainfc1f063f5.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T00:22:24Z.
guest_rudp_context_queriesandguest_rudp_pumpabort with this change: both still callsceRudpTerminate()with the old meaning (GuestRudpPump.cpp). Please update those two tests with the swap.Imported from boykopovar/AnyPS5. Originally posted by ArekatlaNishanthchowdary on 2026-10-12T04:57:18Z.
Both test updates are in
0f2a0215aonArekatlaNishanthchowdary:feat/rudp-absent-calls, the commit after the swap on that branch, rebased onto currentmain(e013f8c9c). It can be cherry-picked onto this PR as is:guest_rudp_context_queries:sceRudpEnd(context)/sceRudpTerminate()becomesceRudpTerminate(context)/sceRudpEnd().guest_rudp_pump:sceRudpTerminate()becomessceRudpEnd().Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, swap plus that commit on current
main:guest_rudp_status,guest_rudp_context_queries,guest_rudp_pumpandguest_offline_importspass;tools/check_conventions.py --base origin/mainpasses. Fullctestnot run.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T07:13:35Z.
Thanks for preparing the test correction and reporting the Windows results. The current PR still does not include the test updates. I will review the offered commit against the current head and carry it with your authorship preserved if it applies cleanly, then rerun the focused tests.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T07:45:30Z.
Rebased onto current
mainand carried Arekatla’s offered test commit with their authorship preserved. Both context-query calls now usesceRudpTerminate(context)followed bysceRudpEnd(); the pump test callssceRudpEnd(). I resolved the overlap with newer main by keeping itssceRudpGetMaxSegmentSizetest coverage and applying only the shutdown-call correction.The earlier Linux and Windows results are recorded with their reported pre-rebase bases; this updated head has not been rebuilt or rerun.
git diff --checkpasses on the current patch. Thanks, Arekatla, for preparing the focused correction.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T10:16:15Z.
Checked the End/Terminate swap on current main plus this PR:
guest_rudp_status,guest_rudp_context_queries,guest_rudp_pump,guest_offline_importspass, and all four fail withExport.cppreverted. The newGuestRudpStatuschecks cover not-initialized, double terminate and re-init. Merging once the full Build is green.