Repository navigation
docs(libSceNet): correct when sceNetAccept reads the inherited nonblocking mode - #9357
Merged
adriadam10 merged 1 commit intoOct 25, 2026
Merged
Conversation
…cking mode Co-Authored-By: Claude <noreply@anthropic.com>
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
Collaborator
|
Checked the changed sentence against |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
One statement in
docs/dev/debt/libSceNet.mdno longer matchesmain; it is replaced with whatmaindoes now, and nothing else in the entry changes.struct Sock(core/libs/prx/libSceNet/Export.cpp:212) has nononblockcopy any more. The flag is the sharedstd::atomic<bool> nonblockin NativeSocketHandle (Export.cpp:144), and sceNetSetsockopt changes it while sockets are in use (Export.cpp:1340). sceNetAccept readslistener.native->nonblockonly at Export.cpp:963, after the host accept innative_transferhas returned (Export.cpp:936-941) and the new socket has been created and registered (Export.cpp:944-962). So an SO_NBIO change made while accept waits carries over to the accepted socket. Commit 1b182e7 (PR fix(net): keep MSG_DONTWAIT transfers nonblocking on Windows #8653) changed this; when 1fee29b wrote the sentence, the check read a by-valuelistener.nonblockcopied before::accept. Now: "The mode is read after the host accept returns; changes between connection creation and accept are not modelled."Tested
Docs only; nothing was built or run. On origin/main 1698d1e I counted the old sentence in docs/dev/debt/libSceNet.md (it occurs once, at line 182) and read these parts of core/libs/prx/libSceNet/Export.cpp: NativeSocketHandle (144), struct Sock (212-224), native_transfer (454-495), sceNetAccept (924-976) and the SO_NBIO store in sceNetSetsockopt (1320-1345); I also confirmed 1b182e7 and its PR #8653 merge 7697443 are ancestors of origin/main. (
main1896871ba7). Each statement was found by a read-only sweep of the debt files and confirmed by two independent verifier passes and a final check on currentmain. No open pull request edits these sentences (checked against every open PR's diff of this file).python tools/check_conventions.py --base origin/mainwith this title and body passes.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)🤖 Generated with Claude Code