fix(libkernel): preserve blocking sockets over nonblocking native transport #12688
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12688"
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 Felipebmaitan on 2026-10-29T02:18:16Z.
What
Head
978a8bef6c118f57242b96cee5c6f8cdf493e5d8integrates published #126827887e7a03da0e8aeed2557f4ba43a6aa777494b9andmain4f5777f2f320111b156ed5db843a6d5f67968923, including #24382’s Windows socket buffer checks.Windows
sendchecks the readable source before entering the transport retry loop. Plainrecvpasses the writable prefix and a partial-buffer indicator toReceiveNative, likerecvfrom. The nonblocking buffer probe and any datagram discard run within the same receive operation. A probe that would block takes the existing retained-socket wait, and cancellation and shutdown are checked before the next native operation. The datagram truncation result uses the validated byte limit.Previous head
a57cf356306256d779487ad2e27695ae76f99ea6merges upstreammainat8ab98849d5ddf19f9e8758a5205b6159318ea10cand retains published #12682 ate3c4edcd7a254b916d0b8be8521cc58079e3ccbc. The conflict was inconnect_nid_postfix. The merge keeps #24939’s Linux pending-connect state undermodeMutex, preserves that state onEINPROGRESS,EALREADY, andEINTR, and clears it on success or a terminal error. The Windows blocking connect can still retry after refusal.The Windows loader fix keeps native I/O registration in libkernel around forwarded receives. libSceNet calls three C entry points that the NID patcher preserves. The stack also keeps #11625’s archive
preaderrno translation inside cancellation and descriptor ownership, #24076’s per-chunk read interruption, and Windowsungetcpushback handling under the FILE lock.The LibreSSL interruption fixture uses the backing socket owner’s transfer callback after injecting the requested error. Winsock sockets are physically nonblocking, and the callback preserves guest blocking mode and timeout semantics. The fixture still requires the next
SSL_connectto succeed and checks the existingEINTRretry flags.The Windows transport uses per-call retries on nonblocking host sockets. It retains the socket across descriptor close or reuse, registers shutdown wakeups against that socket, and preserves positive receive progress. The same shutdown wakes native/SCE and borrowed-owner receive waits, including a wait on a descriptor slot that was closed and reused. The accept wait retains its own operation kind. The merge keeps upstream's checked address and output contracts, forwarded libSceNet close wakeups, and Unix datagram
ENOBUFShandling. The Unix retained SSL callback still readsF_GETFLper transfer and uses a single deadline acrossEINTRretries.The first Windows run reproduced an
EIOinguest_sce_net_kernel_forwardson both the combined branch and the published reads runtime. The updated reads prerequisite captures the native error before the interruption check, restoringEAGAINfor an emptyMSG_DONTWAITreceive. The transport layer inherits that fix.Independent review found that a Windows blocking
connectcould cache a refusal and prevent another attempt on the same socket. The fix keeps pending-error caching for guest-nonblocking connects and allows a blocking connect to retry.guest_socket_optionsnow covers a closed endpoint followed by a successful connection to a listening endpoint. The shared Winsock mode behavior for an independently managed borrowed socket is recorded in the debt fragment.For the landing order proposed in #10645, I’m fine with #10645 landing before #12688. The merge needs both
SubmittedRecords.hppandSocketSelectDeadline.hppinUdp.cpp. The transport builds without #10645. #12700 is downstream and inherits the socket fixtures. The mirrored exports in #18112 and #18190 should forward through the same receive implementations. If #24322 lands, carry the transport changes into the socket translation units compiled by that refactor.#12682 is the prerequisite. #23341 is an independent overlap. The branch that lands second must carry
ReceiveEndedthrough the data receive and readiness recheck paths, and wake a blocked transfer through the retained socket when the peer closes or shuts down writes.Tested
978a8bef6c118f57242b96cee5c6f8cdf493e5d8, 403/403 focused Release CTests passed on Windows 11 Pro (WinLibs GCC 15.2) and 390/390 passed on Linux (Debian 12 container, GCC 14.2, WSL2). Both selections covered UDP, TCP,MSG_DONTWAIT, retained-socket shutdown, cancellation, and LibreSSL transport. The Windows selection included the selected-module loader smoke and the individual patched fixtures.guest_udpexercises unreadable send buffers, unwritable receive buffers, valid writable prefixes, and oversized datagram discard. Eight Windows guarded-buffer tests cover shutdown and cancellation for bothrecvandrecvfromon TCP and UDP. The UDP case and all eight guarded-buffer cases passed five additional runs each.maintipe60b2f74adb21151e50567a770ecd8aa795ce415. The function-name scan covered 2,168 open PR heads, including the independentMSG_WAITALLproposal in #11896. The dependency remains #12682.Results from the preceding Linux connect integration:
a57cf356306256d779487ad2e27695ae76f99ea6, 395/395 focused Release CTests passed on Windows 11 Pro (WinLibs GCC 15.2) and 390/390 passed on Linux (Debian 12 container, GCC 14.2, WSL2). The Windows selection includes the four LibreSSL SSL I/O cases, seven individual patched fixtures, and the selected-module loader smoke. Both suites cover the competing-readerMSG_DONTWAITregression, retained-socket shutdown and cancellation, and the LibreSSL transport fixture.guest_tcpexercised main’sENOTCONNresult forsend,write, and addresslesssendtoduring a pending TCP connect. It andguest_socket_send_before_connecteach passed five additional runs. Windowsguest_socket_options, including the blocking retry after refusal, also passed five additional runs.feat-libwebrtc-rnn-vad.mdentry on both the PR and a cleanmainsnapshot. The function-name scan covered 2,173 open PR heads. The overlapping socket stack, macOS reconnect change, and export mirrors are independent of the upstream Linux fix. #12682 remains the prerequisite.Results from
59991e7d5e186a075c78bd7b55718ce6bb63b59fand its fixture correction:The hosted Windows run had one failing test,
guest_libressl_ssl_io_transport. Locally, head7935169d1605d995040076bee0b6128df94a690creproduced the abort at the secondSSL_connectassertion on line 1161. The three companion SSL I/O cases passed before the fixture correction.Head
59991e7d5e186a075c78bd7b55718ce6bb63b59fpassed 12/12 focused Windows CTests and 14/14 focused Linux CTests. Both selections exercised all four LibreSSL SSL I/O cases, all three LibreSSL engine cases, libSceSsl transports, forwarded receives, and socket nonblocking behavior. The Windows transport case that failed in CI passed eight consecutive runs.tools/pr_overlap.py --names FakeTransferchecked 2,201 open PR heads and found no match. Conventions and whitespace checks passed.All 22 runnable hosted checks passed on
59991e7d5e186a075c78bd7b55718ce6bb63b59f. Its hosted Windows run ran 5,869 tests successfully, including the corrected LibreSSL transport fixture and full patched-library sweep. The hosted Linux job was skipped.The results below are from the preceding loader-fix head
7935169d1605d995040076bee0b6128df94a690c.guest_socket_dontwaitregression for #10943, positiveMSG_WAITALLprogress, and blocking connect retry after refusal.net_dontwait_*cases available on each host, Unix socketpairs, thesockatmarkinline out-of-band fixture, SSL callbacks, curl sockets, standard streams, and stream-close coverage. The added selection covers vector file I/O, pipe creation, descriptor duplication, underscore socket entries, message-buffer bounds, and libSceNet socket info. The archive and plain-file fixtures exercisedapp0.zarmapping and read paths. On Linux,guest_file_vectorcrosses the 2 GiB file transfer boundary.SO_REUSEPORT, andIPV6_V6ONLY. The loader smoke test loaded all six staged patched modules. The PE tables show that every libSceNet cancellation import is exported by patched libkernel. The full patched-library sweep and all seven individual patched fixtures also passed in the hosted Windows run on that loader-fix head.1118184e8fc5183dbe9d3108650199810495a2c8. I reproduced the blocking-connect refusal in the new fixture before the fix. The fixture passed after3bf188d8f478213e85aa21fae457a77fdc649729. On the predecessorc5c5917dcb067b566811d8692d86cd0eae59f12c, 203/203 Windows and 206/206 Linux focused CTests passed. Seven targeted Windows fixtures passed three runs each there. A separate rerun of eight socket tests passed on that predecessor during the progress-report investigation. Marc reviewed selected source paths at that predecessor and at804d854d2bdacb49116521eb6a7c0cba5e45c1d7without a formal approval. That head passed 210/210 Windows and 213/213 Linux focused CTests. Marc’s source-only review of the archive mergedd3e4aa0de0548d820b4aa85a5c6c61ce3ae3683also reported no blocking findings. That archive head passed 215/215 Windows and 218/218 Linux focused CTests.The local results cover synthetic loopback and local socket fixtures. macOS, console or title behavior, and the older AMD profiling report remain unverified. GitHub CI and maintainer validation run separately.
Earlier evidence, pinned to its original heads
What
Head
8f34999f2fad40fcf704765c3dedcafe5d157fa7preserves published November transport95ce5937f26f90a44448271a17fb3d105be6128cand adopts exact published reads32121ca48d0abf5e1c11e7c601636d10ec8cb77d, including fetched main4138defef7c468835190768e5143e411bce92d6a, through merge history.Address Dean's Windows shutdown integration request. Data receive waits register the existing per-thread TransferWakerTag against the retained socket object, after draining stale wake packets. Shutdown through any alias signals that registration, including native/SCE and borrowed-owner receive waits without an active POSIX cancellation operation. Cancellation registration remains separately conditional on IoActive. Transfer checks ReceiveShut before each retry, retains positive progress and treats local shutdown separately from actual interruption. Main's receive-wrapper checks, empty source addresses and receiver arguments remain; Windows WaitForTransfer delegates to this common nonblocking transport loop. Main's ReadWatch machinery for multiplexed waits is retained.
Keep main's new connection tracking/error state alongside the existing physically nonblocking connect loop, and main's measured SSL handshake reset/plaintext errors alongside retained-owner transport callbacks. Restore the FreeBSD soreceive_generic MSG_DONTWAIT citation. The production blocking PEEK|WAITALL throw/debt remains; the previously withdrawn throw-expectation tests are not restored.
Review exposed and repaired a shared-loop error-contract regression: accept is not a byte receive. Explicit private TransferKind::Accept excludes it from data EOF shortcuts, shutdown error mapping and receive-wake registration. This adds no accept cancellation feature. The accept owner must preserve that explicit argument when adopting this prerequisite. Own dependency order remains reads #12682, transport #12688, writes #12700; no other owner's branch was edited.
Tested
Fresh local Release production builds and focused runtime validation, CPU builds capped at two jobs:
2dd935f09d016a4006e0929eaff40a2b8ae27f95: connected stream -> successful SHUT_RD -> accept reportsresult=-1, errno=38instead of normal non-listening EINVAL22 (0.85 s CTest total). The operation-kind repair passes that case and all 156 shutdown cases. Both initial independent MICRO/MACRO reviews confirmed this P2. Two fresh independent read-only MICRO/MACRO reviews of repaired91b617d84495d815c07d933b2ed4451f635fec29found no remaining must-fix defect. Final head differs from the repaired reviewed source only by the restored debt citation; reviewers ran no binaries.Evidence boundaries: Windows transport observes real EWOULDBLOCK and completed registration immediately before select; Linux observes admission before its syscall/poll. This establishes the admission-to-wait gap, not an independently observed already-parked select or Linux partial-WAITALL progress. The missing-notification control establishes that the wake is necessary. Existing WSL userfaultfd fallback and original FreeType submodule state remain. Unix retained SSL bare-poll cancellation/close limits, macOS unconnected-datagram and zero-length datagram ancillary races retain debt. The separately reported address-waking intermittency and Windows 22621 sigjump cause remain unresolved. No fresh title/console/macOS/GPU/allocation-failure/paired trace_digest qualification; no performance claim. Maintainer scene/bench and new-head CI/review remain separate gates; historical approvals below are not current-head approval.
Historical evidence and status at earlier heads (superseded where stated above)
What
Head
95ce5937f26f90a44448271a17fb3d105be6128c, integrated maind23df92b3805fea21493a73cbed8835c9e8548d0through ordinary merge history, preserving every previously published head and maintainer commit.Implement cancellable native socket transport above reads, retaining the Windows partial-writable-buffer recvfrom probe inside the receive retry/deadline and its delayed-data tests. Remove the requested UnsupportedPeekWaitAll helper/invocation and the ReceivePeekWaitAll blocking throw/message/counter loop. Keep the production NotImplemented marker and gap debt, implemented DONTWAIT/nonblocking EAGAIN, PeekWithWaitAll queued-byte/consume checks and ordinary transport behavior. Drop only unused General.hpp/string includes; retain used exception/memory helpers.
#12149 merged November 4 at 05:34 UTC and #9019 merged November 4 at 17:34 UTC; both are satisfied in main. #10552/#10817/#10755 are also merged. All four Apple empty-iovec guards, general context restoration, synchronous writes and deterministic stream-close hooks/comparisons remain. No archive #11625 work or unrelated owner branch was changed.
Current source comparison:
git diff a564d53d8feacc77e94cc6301f35b41175fff6a0 95ce5937f26f90a44448271a17fb3d105be6128cspans 14 files. The maintainer merged main separately into the published branches; the current lower head is not an ancestor of this head. This is a direct tree comparison; the main-based Files view remains cumulative. No retarget or history replacement was performed.Consolidated maintainer response and evidence.
Tested
Current-head Windows verification: native Windows job succeeds at
95ce5937f26f90a44448271a17fb3d105be6128c. The earlier manual dispatch HTTP 403 remains historical; dispatch is no longer a blocker for this head's Windows execution. Read the job log: maind23df92b38merged with this head, Server 2025/GNU 15.2 Release; 2,507 passed / 1,033 skipped / zero failed, 3,540 scheduled, 205.62 s. guest_socket_dontwait passes 5.88 s, guest_socket_transfer_progress 2.00 s and guest_udp 1.71 s. These are the maintainer-requested tests after removal of assertions requiring the unsupported blocking receive. The production marker/debt and implemented nonblocking/peek/delayed-buffer coverage remain. One sigjump sample passes 0.02 s on Server 2025; it does not qualify Windows 22621. Other checks remain incomplete with no observed current failures. Reads/transport/writes approvals remain pinned to earlier parent heads; no new review is inferred. The old accept macOS x86-64 timeout remains unexplained, and accept stays draft for the unresolved Windows 22621 hang.Current transport progress audit: the live report now compares main
d23df92b38with transport95ce5937f2. Reproduced libkernel counts 703 done / 55 todo on main and 696 / 62 here. A temporary scanner-only copy changing only Transfer's blocking-stream receive PEEK|WAITALL NotImplemented marker to a generic throw restores 703 / 55 and precisely accept/recv/recvfrom/recvmsg/send/sendfile/sendto. The scanner propagates helper names without evaluating platform, send/receive or flag guards. Send paths cannot enter that receive-only guard; accept uses no PEEK|WAITALL flags. Receive paths retain the documented unsupported Windows combination alongside implemented behavior. This is classification evidence only, with no runtime qualification. The production gap marker/debt and scanner remain intact; the maintainer-requested removal of tests requiring the missing feature is preserved. The report does not establish unconditional replacement of seven exports with stubs, and no new source change or push is warranted.Main-integration follow-up: authoritative head
95ce5937f26f90a44448271a17fb3d105be6128c, maind23df92b3805fea21493a73cbed8835c9e8548d0. During the reads overlap audit the bot refreshed to 12 compared / 81 uncomparable branches at 2026-11-05 12:56:19 UTC. #15698 is confirmed merged; its removed row is satisfied by main. The other removed rows are not treated as merged or cleared merely because they disappeared. The remaining compared heads match the selected-source audits; no new implementation dependency. The existing-main recvfrom notice was checked: one implementation definition and one canonical declaration in main and reads, with no duplicate registration to remove.The pre-push fetch caught maintainer commits
a564d53d8f(reads),95ce5937f2(transport) and6076fc5ca3(writes). Those published commits were adopted unchanged; only accept needed a new ordinary merge of the maintainer's writes head, producing82eaaf7766. Main's macOS process-start-block pages stay mapped, and the debt still states that POSIX read/receive waits wake and defer delivery until ownership guards are released. No maintainer source resolution was overwritten.All four authoritative heads pass required conventions and whitespace checks (the existing SSL warning remains on the upper layers). The changed MainThreadMacOs.cpp passes host macOS x86-64 syntax checking. Linux I/O production sources and the selected I/O fixtures are unchanged from the earlier composed 93-test run; guest_socket_dontwait passes again against those unchanged Linux binaries (1.93 s; 2.07 s CTest total). This is not execution of the macOS stack-move fixture or a fresh full-suite run. The refreshed coordinated overlap scan covers 1,831 PRs and fails closed for 84 uncomparable branches at the top accept tree; the reads report's 81 count has different scope and remains uncleared. No repeated no-change overlap comment is posted. New integration-head checks/reviews remain pending; earlier runtime results and approvals below are historical at the heads they name. The earlier manual dispatch was denied HTTP 403; current Windows jobs are recorded above, so dispatch is no longer a blocker for these heads; the intermittent Windows 22621 hang and old accept macOS x86-64 timeout remain unresolved. Accept stays draft.
Transport overlap refresh 2026-11-05 11:59:58 UTC at this head: 19 compared / 94 uncomparable branches, against main
e772fb25cc. Read all 19 live heads and the selected new/changed shared-source patches; no whole-branch or combined-runtime clearance. This is the transport subset of the coordinated scan, whose top accept tree reported 100 uncomparable branches.Selected composition requirements: #13390's updated host-log preservation and failure handling must retain FILE-before-descriptor locking and deterministic stream-close controls. #13582/#13587 preserve checked output-before-mutation and module copy/error ordering; #14497 adds checked JIT output and rollback after releasing its registry lock, so later close cleanup must retain that ordering. #15571/#15748 add checked name/key outputs with failure cleanup. #12970/#14264 add independent startup/instance-lock/allocator build registrations; preserve both sets of tests and platform paths. #15698 retains the macOS process start block when releasing the old stack; preserve that mapping lifetime alongside stack/context retirement.
#15782 maps Windows INADDR_ANY and IPv4-mapped zero destinations to loopback, after existing zero-port/multicast decisions; a later composition must keep that address/error order, SourceFaults precedence and this stack's descriptor/cancellation/Native scopes. #15794 changes UserUcontext/UserMcontext layout and aliases exception frames to it; its proposed offsets, copy bounds and tests must be reconciled with this stack's opaque mc_spare identity/copied-context/abandonment behavior. Its layout change is not imported or jointly tested here. #15848 changes SSL handshake reset/plain-response codes and adds fixtures; preserve that classification and coverage alongside retained transport ownership and its documented Unix wait limit. Remaining pins retain their prior selected-source audits.
These patches introduce no helper this transport implementation requires. Depends on remains #12682; #12149 and #9019 are satisfied in main. No import, base change, source push, order agreement or new runtime qualification follows from this report. All 94 uncomparable branches remain uncleared; archive #11625 is untouched. No repeated overlap comment posted. Pinned compared heads: #12970
a26cb1fc68f20005548d7a3cc162c6220e6a2d3c, #133909cf30ea1519df52d52e56892e839d33389808ddc, #13468ed4c0e19d226c7d37dc61cb1a34ad35c76431d6a, #135824ebacd9758689a3e6d9133cf0e5dbcb6ef4bdca1, #1358749b8d3f89428d8ee111f753053913bdf20c73ef3, #140854e67d63a85551ed560845b3abc7766a1eab89ff6, #1418380c8ea873ee9adfc0a0f9ce060d2ec1e883d9e4f, #14264cd4549d0cc7790dcc000d1613b6e9a3eaf0a3e5a, #144977d75cace5a99f4029e8699f806fa6fe7b40170fe, #15135b83067a484129701bb780ba2b0b430b1a0f56d1c, #15508c87d4dcc19244f45b47c7559d41742c9a15b7999, #15524887c31979a495f396c8bee2e202f0e5bfffbe850, #15567f5dacc4e140ca1c323f3d229c687132e837cf480, #15571a0480169f435d8e04dd93bbc9cb9940a51e11010, #15698dd5ee9e4c66d8fb716b0d6426fd6bd94822f58eb, #15748b90f0dc47cec8a8b4c795ac29693083d3cf96cc4, #157822d60f12f6c74e6f073bc24e8d37881bce366f390, #1579490c30d52bedf772d7f52789c6bbae4b3ded37378, #1584841ddd4d6d7e3fe21596bc778aa1467f3d878aab9.Composed accept tree
6db995790dbe9193ee44028e327ad907faaa5cbawith maine772fb25cc72ee5faf77847f06bbc69533016e82: Ubuntu 24.04.5/GCC 13.3 Release, x86-64 Docker through Apple Silicon translation. Rebuilt libc/libkernel/libSceLibcInternal/libkernel_sys and focused fixtures. 30/30 selected socket/UDP/context/accept tests pass (4.60 s): guest_socket_dontwait 1.78 s, guest_udp 1.59 s, all 15 accept cases including both installation failures and cancel/jump handoff disposal. 63/63 selected synchronous-write/stream-close tests pass (3.13 s). These are composed-stack focused results, not a full suite or independent runtime runs of every layer. Both requested test removals are present; implemented nonblocking/peek and delayed partial-buffer cases remain.Required
python3 tools/check_conventions.py --base origin/mainchecks pass for all four final heads, using an isolated Git context whose origin/main is the actual fetched upstream main above. Reads has no findings; upper layers retain only the existing SSL debt-length warning. Whitespace, preserved-parent and bottom-up ancestor checks pass. The coordinated stack overlap scan covers 1,811 open PRs and fails closed for 100 uncomparable branches; no whole-branch overlap clearance or owner-order agreement is claimed. Latest main and all four remote heads were fetched before the atomic fast-forward-only push. GitHub reports all four branches merge cleanly.Earlier Windows verification status, superseded by the current results above: After the earlier publication, ordered Build dispatch
12682 12688 12700 12965was rejected with HTTP 403, “Must have admin rights to Repository.” At that point a collaborator/admin dispatch was requested for guest_socket_dontwait plus native Windows guest_socket_transfer_progress; current runs above now supply execution. The available MinGW 13 cross-syntax attempt stops at newer main's_fflush_nolockdeclaration; no native Windows execution is inferred. The previous published heads' Windows jobs passed, but do not qualify these updates. New-head CI/review requires refresh.Prior XairRrR approvals are historical: reads
32169af1dc, transport70120f1b86, writesfbd44d3326. Accept's prior review is COMMENTED and it remains draft. No new approval is inferred.The old accept macOS x86-64 job126136729127 remains failed at attempt 1; refreshed status/log reads 668 passed and guest_none_relocations timed out at 20.12 s, 354.88 s total. Its cause and a fix are unestablished; there is no fresh full macOS runtime qualification. The intermittent Windows 22621 sigjump hang remains unresolved; these Linux passes do not resolve it. Retained SSL waits, per-call I/O overhead and the cancelling-caller indefinite spin retain their debt/limits. Unpublished signal-registry/cancellation-request and SyncWrites-exception candidates are excluded. No new title/console, GPU or paired same-scene trace_digest run; no performance claim. Maintainer title-scene bench remains external.
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 repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:50:55Z.
Review: COMMENTED
Correction (2026-11-01): the title-ID/log demand below is not a CONTRIBUTING requirement;
Unblocks: noneis allowed. The technical points below are unaffected.The descriptor-access layer is cumulative here as well (the diff still carries the reads layer, +6.1k). The same points as on #12682 apply:
GuestDescriptorAccess::Get(int)locks one global static mutex and does anerase_ifpass over the wholestd::map<int, std::weak_ptr<State>>on every call, which is every read, recv, write and send. That is O(open descriptors) under a process-wide lock per I/O call.Interrupt()followed bychanged.wait_for(lock, 1ms)untilCanChange(). The registry drain isyield()in a loop while holding and re-taking the registry mutex.Evidence:
Unblocks: nonewhile the body leans on Human Fall Flat (PPSA02429). Please name the title underUnblocksand show the log line that reaches this transport path onmain. There are notrace_digest.pysummaries ofmainversus this change for a socket-heavy scene, so the cost of moving native sockets to nonblocking plus readiness polling is unmeasured.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T17:44:24Z.
Review: COMMENTED
Reviewed — comments
The PR merges cleanly, builds, and passes every Linux test it reaches, and the Linux negative control fails as it should. Most of the new transport code is Windows-only and could not be run here, and reading it turns up one likely Windows regression.
What I ran
Head
35e16ad94f3ef76de75d7c28ad224efb71f8d790merged with--no-ffintomain1e658521a0a599872612bb91949311e2956b5283, on Debian 13 (VM, 32 vCPU Xeon Gold 6136), GCC 14.2.0, Release, Ninja.Results
git diff --checkcheck_conventions.pydebt-lengthondocs/dev/debt/libSceSsl.md:10, 7821 characters; this entry already existed and the PR edits it)libs(script)main(agc_driver_*denormal/division,guest_interfaces,guest_socket_options_multicast,unwrap_self_…,vector_constant_factor_tininess);guest_net_ctlskip also happens onmainnet_dontwait_blocking_sendtoat 3.13 sgit status --porcelainempty; focused tests pass again (5/5)Negative control
I restored only
core/libs/prx/libkernel/Socket/src/Udp.cppfrommainand rebuilt. Four tests then failed:Output with main's Udp.cpp
So the new Unix tests depend on the PR's
TransferForNativeOwner, which is now installed on every platform. After I restored the merged file and rebuilt, they passed again. The Windows-only fixtures, such asguest_socket_transfer_progress, are not registered on Linux, so this control does not cover them.Findings
Blocking
None.
Non-blocking
Windows blocking
recvfrominto a partly unwritable buffer can now returnEAGAINinstead of waiting. Udp.cpp#L1999-L2008 callsPendingFits(L620-L647) beforeReceiveNative.PendingFitsmakes a directMSG_PEEK::recvfromcall.Installmakes every Windows native socket nonblocking, and WindowsWaitForTransferreturns 0 straight away (L1087-L1092).WSAEWOULDBLOCK, and the call returnsFail(35)without ever reachingTransfer's readiness wait orSO_RCVTIMEOhandling.I found this by reading the code; I could not run it, because there is no Windows here. The path is narrow (it only applies when
GuestPrefixfinds less writable memory thanlength), but it contradicts the PR's goal of preserving blocking sockets. Suggested fix: when the guest socket is blocking andMSG_DONTWAITis not set, wait withWaitTransferReadyand the receive deadline before the peek, and retry the peek onWSAEWOULDBLOCK. A Windows test that sends the datagram after the receiver blocks would cover this.Windows blocking
MSG_PEEK | MSG_WAITALLon a stream socket returns an inventedEOPNOTSUPPinstead of throwing. See Udp.cpp#L167-L170.main, Winsock produced the same error for this combination, so this is not a regression. But the PR now synthesises the error deliberately, so it should beNotImplemented_nid_no_patch("recv: MSG_PEEK | MSG_WAITALL on a blocking stream socket"), and theMSG_DONTWAIT/MSG_WAITALLdebt wording should change to match.The Unix retained transfer wait cannot be cancelled.
TransferForNativeOwneron Unix waits in a bare::poll(Udp.cpp#L251-L252), not insideThreadCancel::Native. An SSL session on a blocking socket with no timeout therefore waits indefinitely, even when the socket is closed from another thread, unlessshutdownwakes it.Scope. The diff against
main(53 files, +5566/−181) includes the open prerequisites #12149 and #12682. TheDepends online declares them, but merging this PR before them would bring their code in under this title. This review concentrated on the transport part:Socket/,NativeIo.cpp, libSceSsl, libSceNet and their tests. It did not re-review the read-cancellation and_setjmplayers in depth.Not verified
Transfer/WaitTransferReadylogic is#ifdef _WIN32: nonblocking native transport, readiness retries, the deadline restart after progress,connectcompletion throughselect, and the per-thread waker reuse. None of it ran here. The CI totals quoted in the description (Server 2025: 2,389 passed; macOS relinker 669/669) are taken from the PR text and not reproduced. The Windows 22621 intermittent hang the author reports is still open.To get this to a good state
recvfrompartial-writable-buffer path honour blocking mode andSO_RCVTIMEObefore peeking (finding 1), and add a Windows test where the datagram arrives after the receiver blocks.NotImplemented_nid_no_patchfor blockingMSG_PEEK | MSG_WAITALLon Windows instead of returningEOPNOTSUPP(finding 2), and update the debt entry to match.mainis only the transport change.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T18:18:37Z.
Review: COMMENTED
Re-checked — comments
Commits
085458a70cand8957ad0b52change three things. The Windows partial-bufferrecvfromprobe now runs inside the transport wait, and blocking streamMSG_PEEK | MSG_WAITALLnow throws. The Unix retained-wait limitation is now written into both debt files. Reading the code, all three points from my last review are fixed. But the two code fixes only run on Windows. Neither here nor in the author's run (syntax-only MinGW checks) have they been executed.What changed since my last review
core/libs/prx/libkernel/Socket/src/Udp.cpp:ReceiveFromno longer callsPendingFitsbefore the receive. It passespartialBuffer = limit < lengthtoReceiveNative.ReceiveNativerunsPendingFits/DropDatagraminside theTransferoperation, atoffset == 0.TransfercallsNotImplemented_nid_no_patch("recv: MSG_PEEK | MSG_WAITALL on a blocking stream socket")instead of settingWSAEOPNOTSUPP.core/libs/tests/GuestUdp.cpp: newCheckDelayedPartialReceive. It covers delayed fitting (3-byte) and oversized (8-byte) datagrams into 4 writable bytes followed by a guard page:SO_RCVTIMEO;MSG_PEEK;EAGAINforMSG_DONTWAITand for a nonblocking socket.core/libs/tests/GuestSocketTransferProgress.cpp(Windows-only fixture): newreceive-peek-waitallmode. It checks that blockingrecvandrecvfromthrow and that the NotImplemented counter goes up by one, and that theDONTWAITand nonblocking calls still returnEAGAIN.MSG_DONTWAIT/MSG_WAITALLentries indocs/dev/debt/libkernel.mdnow say the combination throws.docs/dev/debt/libkernel.md, and a matching entry todocs/dev/debt/libSceSsl.md.What I ran
Head
8957ad0b52a6400270f0129e09d2deb7f1a5503e, merged with--no-ffintomain1e658521a0a599872612bb91949311e2956b5283(merged treeae09f701a88db155f538355f2f14dbdb1c7f90b9). Debian 13 VM, 32 vCPU Xeon Gold 6136, GCC 14.2.0, Release, Ninja.git diff --checkcheck_conventions.pydebt-lengthon the existingdocs/dev/debt/libSceSsl.md:10entry, 7821 characters, unchanged from last time)libs(script)agc_driver_*denormal/division,guest_interfaces,guest_socket_options_multicast,unwrap_self_…,vector_constant_factor_tininess) also fail onmain, and theguest_net_ctlskip also happens onmainguest_udptakes 1.53 s with the new case.guest_socket_transfer_progressis registered only on Windows, so it did not runUdp.cpp)guest_udpstill passes, as expected on Linux (see below)git status --porcelainempty, andguest_udppasses againPrevious findings
Windows blocking
recvfrominto a partly unwritable buffer returnedEAGAINinstead of waiting. Resolved by reading the code; not run.Transfer(Udp.cpp#L1073-L1083).PendingFitssetserrorbut leavesWSAGetLastError()atWSAEWOULDBLOCK. The operation returns -1, andTransferwaits inWaitTransferReadyunder the single receive deadline, then retries the probe.WSAEFAULT.Transferdoes not retry it and returns -1, soReceiveFrommaps it toEFAULTthroughNativeError(), which matches the oldFail(14).DropDatagramstill skips the drop underMSG_PEEK.Windows blocking stream
MSG_PEEK | MSG_WAITALLreturned an inventedEOPNOTSUPP. Resolved.NotImplemented_nid_no_patch(Udp.cpp#L167-L169). The mode lock is released before the throw.The Unix retained transfer wait cannot be cancelled. Resolved as recorded debt.
polloutsideThreadCancel::Native.Scope: the diff includes the open prerequisites #12149 and #12682. Still open (non-blocking).
Depends onand still open.mainstill brings their code in under this title if this PR merges first.Negative control
The delta's production change is all inside
#ifdef _WIN32. I restored onlyUdp.cppfrom the previous head35e16ad9and rebuiltguest_udp_tests.guest_udp, including the newCheckDelayedPartialReceive, still passed. This is expected: on Linux the receive was already a blocking native call underThreadCancel::Native. So the new test is useful regression coverage on Linux, but only a Windows run can show it catches the old bug. Thereceive-peek-waitallfixture is not registered on Linux. After I restored the merged file and rebuilt,guest_udppassed again and the worktree was clean.New findings
Blocking
None.
Non-blocking
libkernel.md, with a short pointer from libSceSsl, would be enough, though the duplication does no harm.Not verified
Transferchange and the NotImplemented throw are Windows-only and were not run here. The author reports only syntax-only MinGW checks for this head, so so far no one has run them on Windows. This is the reason forcommentrather thanapprove.guest_io_context_sigjumphang is not addressed here.To get this to a good state
guest_udpandguest_socket_transfer_progress. It should confirm that the delayed partial-buffer receive blocks and then completes, and that blockingMSG_PEEK | MSG_WAITALLthrows.mainis only the transport change.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T18:56:19Z.
Review: COMMENTED
Re-checked — comments
Two commits since my last review:
70120f1b86changes the Windows-onlyPeekWithWaitAllcase inGuestSocketDontWait.cppto expect theNotImplemented_nid_no_patchthrow instead ofEOPNOTSUPP, and4f897946d2removes the blank lines and the duplicated text in the retained-wait debt entries. No production source changed. The test fix looks right in the code, but it only runs on Windows and has not run there yet.What changed since my last review
core/libs/tests/GuestSocketDontWait.cpphas a newUnsupportedPeekWaitAll(L231-L242). Its call site at L253-L255 is inside#ifdef _WIN32.recv_nid_postfix(..., WaitAll | 2)on the test thread instead of on aReceiveworker thread.std::runtime_errorand checks that the message containsMSG_PEEK | MSG_WAITALL on a blocking stream socket. It also checks thatNotImplementedCalls_nid_no_patch()went up by exactly one, and that the buffer is unchanged.pair.CheckReadable(true)and theDontWaitconsume that follow are kept.Udp.cpp:167-169.NotImplemented_nid_no_patchthrowsstd::runtime_error(funcName + " not implemented")and increments the counter (core/libs/prx/libc/src/General.cpp:1020-1027), so the substring and counter checks fit.std::threadand callstd::terminate. According to the author, that is how the parent-head Windows job failed.docs/dev/debt/libkernel.mdno longer has the blank line before the "Retained native socket transport" entry (L384).docs/dev/debt/libSceSsl.mddrops the blank line and shortens its entry to a pointer to the libkernel entry (L22).8957ad0b52, merged onto1e65852. I can only read the author's summary of it:guest_udppasses, including the delayed partial-buffer cases.guest_socket_transfer_progresspasses, including the throw and counter checks.guest_socket_dontwaitexpectation that this push fixes.What I ran
Head
70120f1b8604f9a5f4f96cb18fbf299204acdeec, merged with--no-ffintomain1e658521a0a599872612bb91949311e2956b5283(merged tree4e58136a6e6d75a99d8feb1427b9729989753892). Debian 13 VM, GCC 14.2.0, Release, Ninja.git diff --checkcheck_conventions.pydebt-lengthon the existinglibSceSsl.md:10entry, 7821 characters), unchanged since last timelibs(script)main. Theguest_net_ctlskip also happens onmain.agc_driver_alpha_to_coverage_sample_mask_exportpassed on rerunguest_socket_dontwait1.64 s,guest_udp1.53 s,guest_ssl_transport_kernel/_net1.45 s each).guest_socket_transfer_progressis registered only on Windowsgit status --porcelainemptyNegative control
None was possible here. The only test change is inside
#ifdef _WIN32, and the production code it checks is Windows-only too. On Linux,guest_socket_dontwaitdoes not build or run the changed branch, so restoringmaincannot make it fail here. The author reports a stubbed harness in which the old returned-error behaviour makes the new assertion fail. I take that as author-reported.Previous findings
recvfromprobe outside the transport wait. Resolved, as before.guest_udppassed in Windows job 126104433602 at the parent head. Production code has not changed since.EOPNOTSUPPfor blocking streamMSG_PEEK | MSG_WAITALL. Resolved.guest_socket_transfer_progresspassed on Windows (author-reported).guest_socket_dontwaitexpectation is now updated to the throw contract.Depends on.4f897946d2.New findings
Blocking
None.
Non-blocking
None.
Not verified
PeekWithWaitAllbranch has not run natively. The parent-head job did not run it in its fixed form. This is why the verdict iscommentand notapprove.recv_nid_postfixon Windows leaves descriptor admission and ownership consistent. TheCheckReadableand consume after the call would show a problem in a Windows run.guest_io_context_sigjumphang (author-reported, still unresolved). Not addressed.To get this to a good state
70120f1b86(a collaborator dispatches it).guest_socket_dontwait,guest_udpandguest_socket_transfer_progressshould all pass.mainis only the transport change.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T20:06:27Z.
Review: APPROVED
Re-checked — approved
The head is unchanged at
70120f1b86. Since my last review the author has reported a native Windows CI run of this exact head. That run was the only missing item, and the PR still merges, builds and passes its focused tests on the newermain086c0686.What changed since my last review
70120f1b8604f9a5f4f96cb18fbf299204acdeecmerged ontomain1e658521a0, on Server 2025 with GNU 15.2, Release:guest_socket_dontwaitpassed in 5.88 s, so the correctedPeekWithWaitAllthrow/counter branch has now run.guest_udppassed in 1.72 s.guest_socket_transfer_progresspassed in 2.01 s.main086c0686is clean. Neither touches code.mainmoved from1e65852to086c0686. The script re-merged and retested against the newmain.What I ran
Head
70120f1b8604f9a5f4f96cb18fbf299204acdeec, merged with--no-ffintomain086c0686c8adff3ee648fdbe34e0b0b647e1d511(merged tree6fe766c8e5d67e5896fee0c11a6759c4f75b7468). Debian 13 VM, GCC 14.2.0, Release, Ninja.git diff --checkcheck_conventions.pydebt-lengthon the existinglibSceSsl.md:10entry, 7821 characters), unchangedlibs(script)main. Theguest_net_ctlskip also happens onmainguest_socket_dontwait,guest_udp,guest_socket_timeouts, the 3 native-mode cases,guest_ssl_transport_kernel/_netandguest_io_descriptor_access_cancelgit status --porcelainemptyNegative control
None was possible here; the reason is the same as last time. The changed test branch and the production path it checks are both inside
#ifdef _WIN32. The author reports a stubbed harness in which restoring the old returned-error behaviour makes the assertion fail. I take that as author-reported.Previous findings
recvfromprobe outside the transport wait: Resolved.guest_udppasses at the exact head on Windows (author-reported) and on Linux here.EOPNOTSUPPfor blocking streamMSG_PEEK | MSG_WAITALL: Resolved. The throw contract is in place.guest_socket_transfer_progressand the correctedguest_socket_dontwaitpass natively on Windows at this head (author-reported).docs/dev/debt/libkernel.md, with a pointer fromlibSceSsl.md.Depends on, and they should merge first.4f897946d2, unchanged since.New findings
Blocking
None.
Non-blocking
None.
Not verified
main. That job usedmain1e65852, not086c0686. Only Linux was tested here against086c0686.guest_io_context_sigjumphang. The author reports it as still unresolved; it concerns the accept layer of the stack.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T08:52:29Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
8f34999f2fad40fcf704765c3dedcafe5d157fa7from the prepared patch and targeted reader output. I ran no commands or tests. The reported Windows and Ubuntu runs are author-supplied.Results
Findings
Blocking
None in the inspected code.
Non-blocking
Not verified
I read
description.md,commits.md,diff.patch,manifest.json, and targeted source ranges fromDescriptorAccess.cpp,IoSignals.cpp,NativeIo.cpp,JumpBuffer.cpp,JumpBuffer.hpp,DescriptorControl.cpp,Stdio.cpp, andUdp.cpp. I did not read every file marked included in the manifest.files.jsonwas not available through the reader, so excluded-file details are not verified. No build, test, CI job, or console behavior was run or independently confirmed.To get this to a good state
Nothing is required. Optional: preserve the platform-specific test evidence and limitations in the PR description.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T21:29:31Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing in the inspected code establishes a blocking defect; I could not justify a formal approval because not every reviewed file was read.
What I ran
Reviewed head
c5c5917dcb067b566811d8692d86cd0eae59f12c. No commands or tests were run. The author reports focused Windows and Linux CTest runs indescription.md; those results were not independently verified here.Read the prepared description, commit list, manifest, and diff, plus the full text of
DescriptorAccess.cppandDescriptorAccess.hpp, and targeted ranges inIoSignals.cpp,NativeIo.cpp, andUdp.cpp. The review folder did not exposefiles.json; its changed-file listing marks every listed changed file included.docs/dev/debt/changes/posix-socket-blocking-transport.mdwas excluded by rule.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
None.
Not verified
The remaining changed files were not read, so their behavior and the complete change are not verified. No tests or builds were run. macOS, console/title behavior, and exact-head CI were not independently confirmed; the description also identifies these as unverified or separate gates.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T23:15:02Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete, so a formal approval or change request is not justified; no blocking defect was verified.
What I ran
No commands or tests were run. I read the prepared description, commits, review README, manifest, and diff, plus
DescriptorAccess.hpp,DescriptorAccess.cpp,IoSignals.cpp,NativeIo.cpp,DescriptorControl.cpp, and the opening ofUdp.cppat the pinned head804d854d2bdacb49116521eb6a7c0cba5e45c1d7.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Not verified
The change spans 61 changed files listed in the review bundle. I did not read every changed line or inspect all touched code paths and tests, so the review does not establish that the full change is sound. The review bundle’s
files.jsonwas not available; excluded files were therefore not verified. No runtime, build, or CI checks were performed.To get this to a good state
Complete the review of the remaining changed lines and relevant callers and tests, then run the appropriate checks on this head before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T02:54:22Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected cancellation and socket paths showed no verified blocking defect, but this review is incomplete because I did not read every changed file.
What I ran
Reviewed head
dd3e4aa0de0548d820b4aa85a5c6c61ce3ae3683using the prepared diff and pinned reader. I ran no tests or builds. The description reports Windows and Linux focused test runs; those results were not reproduced in this review.Results
Negative control
Not run.
Findings
Blocking
None verified in the inspected paths.
Non-blocking
Nothing to report from the inspected paths.
Sources
Behavior claims are based on the prepared diff and repository source at the reviewed head. Socket transfer implementation and descriptor access implementation.
Not verified
I read
review/description.md,review/commits.md,review/manifest.json,review/README.md, andreview/diff.patch. In changed repository files, I inspected targeted ranges incore/libs/prx/libc/src/DescriptorAccess.cpp,core/libs/prx/libkernel/Pthread/src/IoSignals.cpp,core/libs/prx/libkernel/Pthread/src/NativeIo.cpp,core/libs/prx/libkernel/Pthread/include/Cancel.hpp,core/libs/prx/libkernel/File/src/Stdio.cpp,core/libs/prx/libkernel/File/src/DescriptorControl.cpp,core/libs/prx/libkernel/File/src/Open.cpp,core/libs/prx/libkernel/Socket/src/Udp.cpp,core/libs/prx/libSceNet/Export.cpp,core/libs/prx/libSceSsl/Export.cpp,core/libs/prx/libc/include/FileStream.hpp,core/libs/prx/libc/include/HostThreadLocal.hpp,core/libs/prx/libc/include/JumpBuffer.hpp,core/libs/prx/libc/src/JumpBuffer.cpp,core/libs/prx/libc/src/RuntimeSupport.cpp,core/libs/prx/libkernel/Pthread/src/Thread.cpp, anddocs/dev/debt/changes/posix-read-cancellation.md. I did not read all changed lines in those files or inspect the other changed files. No separatefiles.jsonwas available in the review folder listing; the manifest reports all changed files included. Tests, build results, macOS behavior, console behavior, and hardware behavior were not independently verified.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed lines and run focused checks on this exact head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T04:50:40Z.
Review: COMMENTED
Reviewed — comments
The exact head
7935169d1605d995040076bee0b6128df94a690chas no verified blocking finding in the inspected excerpts, but this review is incomplete and does not support a formal approval.What I ran
No commands or tests were run. I read the prepared description, commit list, manifest, file list, and selected excerpts from
diff.patch; repository source was not read throughrepo_read.py.Results
Findings
Blocking
None verified in the inspected excerpts.
Non-blocking
None.
Not verified
The changed production and test files were not read in full, and callers beyond the inspected excerpts were not checked. The author-reported Windows and Linux results were not independently run. The manifest lists 55 changed files as included; selected excerpts of
DescriptorAccess.hpp,DescriptorAccess.cpp,JumpBuffer.cpp,Open.cpp,Stdio.cpp,Udp.cpp,IoSignals.cpp,NativeIo.cpp,Thread.cpp, andException.cppwere inspected indiff.patch. No changed file was read throughrepo_read.py; the full texts listed in the manifest and the excluded debt fragment were not reviewed.To get this to a good state
Nothing is required. Optional: complete the source and test review before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T06:50:28Z.
Review: COMMENTED
Reviewed — no blocking findings
The prepared bundle describes socket I/O and cancellation changes, but this review is incomplete because I read only a small subset of the changed files; no merge decision is justified.
What I ran
Reviewed prepared head
59991e7d5e186a075c78bd7b55718ce6bb63b59fusing the provided reader. I did not run tests or other commands.Results
Negative control
Not run.
Findings
Blocking
None identified in the portions reviewed.
Non-blocking
None.
Sources
Read selected hunks in
review/diff.patchand source at the pinned head incore/libs/prx/libc/src/DescriptorAccess.cpp,core/libs/prx/libc/include/FileStream.hpp,core/libs/prx/libc/src/JumpBuffer.cpp,core/libs/prx/libc/include/JumpBuffer.hpp, andcore/libs/prx/libSceLibcInternal/UserContext.cpp.Not verified
I read
review/description.md,review/commits.md, the beginning ofreview/manifest.json, and selected ranges ofreview/diff.patch. I did not read every file listed as reviewed in the manifest, the full diff or manifest, or the excluded-file listing. The remaining changed code, tests, and behavior are not verified.To get this to a good state
Complete review of the remaining changed files and relevant tests before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T13:30:23Z.
Review: COMMENTED
Reviewed — comments
The change spans 61 included files; only selected portions of four production files and the prepared diff were inspected, so the evidence is insufficient for a formal decision.
What I ran
Reviewed head
a57cf356306256d779487ad2e27695ae76f99ea6. No commands or tests were run; the prepared diff was used without fetching it again.Results
Negative control
Not run; no test binary or build environment was available through the reader.
Findings
Blocking
None verified from the inspected portions.
Non-blocking
No code-level finding is asserted from this partial inspection.
Sources
Prepared diff and repository source at the pinned head. No behavior claim is made beyond the inspected excerpts.
Not verified
Inspected repository files:
core/libs/prx/libkernel/Pthread/src/IoSignals.cpp(lines 1–220),core/libs/prx/libkernel/Pthread/src/NativeIo.cpp(lines 1–121),core/libs/prx/libkernel/File/src/Stdio.cpp(lines 1–220), andcore/libs/prx/libkernel/Socket/src/Udp.cpp(lines 1–200). Also inspectedreview/description.md,review/commits.md,review/manifest.json, andreview/diff.patch(lines 1–999). The remaining source ranges and other changed files were not read.files.jsonwas not available through the reader. Builds, tests, platform behavior, and the rest of the changed code remain unverified.To get this to a good state
Nothing is required for the non-blocking comments in this draft; complete the source review and run the applicable checks before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T14:07:43Z.
Review: COMMENTED
Reviewed — comments
The change has broad author-reported test coverage, but this review did not inspect every changed file or run those checks, so a formal approval is not justified.
What I ran
No commands or tests were run. I read the prepared description, commit list, manifest, diff excerpt, and targeted source ranges at head
978a8bef6c118f57242b96cee5c6f8cdf493e5d8.Results
Findings
Blocking
None identified in the source ranges reviewed.
Non-blocking
Not verified
The change spans many files. I read
core/libs/prx/libkernel/Pthread/src/IoSignals.cpp,core/libs/prx/Pthread/src/NativeIo.cpp,core/libs/prx/libc/src/DescriptorAccess.cpp,core/libs/prx/libc/include/DescriptorAccess.hpp, andcore/libs/prx/libkernel/Pthread/include/Cancel.hpp, plus the opening diff excerpt and selected test diff. I did not read every changed file or all changed hunks. I did not inspect the excluded-file list, run tests, or verify platform, console, or title behavior. The author-reported test results remain unverified.To get this to a good state
Nothing is required. Optional: independently verify the reported focused test runs and complete review of the changed files before relying on this review as a merge decision.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T19:53:56Z.
Review: COMMENTED
In the Windows partial-buffer path,
PendingFitspeeks at the next datagram andDropDatagramor the receive consumes it in a separate call. TheTransferretry loop does not serialize those two native operations against receives on the same socket. If another reader consumes the peeked datagram, the fault path can discard a different packet which would have fit. Can the nonblocking peek-and-consume sequence share the socket's receive serialization, with the lock released before waiting for readiness?Source review at
978a8bef6c. A trial merge onto484e8e6b77conflicts in libc and libkernel, includingSocket/src/Udp.cpp. Native Windows execution is unavailable here.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.