Repository navigation
fix(libkernel): translate pending connection errors - #2080
Closed
STUPIDCONTEM wants to merge 1 commit into
Closed
STUPIDCONTEM wants to merge 1 commit into
STUPIDCONTEM wants to merge 1 commit into
Conversation
8 of 9 tasks
9 tasks done
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.
Evidence review (2026-10-09)
Game/title evidence has not been established. Validation below is host regression/build evidence only; it does not establish title compatibility. Older checked items and test results describe their stated revisions, not current merge readiness.
Game/title ID: none verified. No PS5 title execution is claimed.
What
Nonblocking connect now translates a pending host connection to guest EINPROGRESS (36), and a repeated pending connection to EALREADY (37). Previously Windows WSAEWOULDBLOCK became EAGAIN (35), while POSIX EINPROGRESS/EALREADY fell through to EIO (5). Applications checking the expected pending status could incorrectly treat an ordinary connection attempt as failure.
Translation is specific to connect, preserving ordinary send/receive would-block behavior and existing fallback errors. The contracts are FreeBSD stable/11 connect(2) and Microsoft Winsock connect. Windows WSAEINPROGRESS describes a separate blocking Winsock operation; it is not reclassified as a pending nonblocking connect.
Tested
Windows 10 Pro 19045, WinLibs GCC 15.2.0 UCRT posix SEH r7, Release, BUILD_TESTING=ON; independent branch from main f145139.
An earlier fourteen-proposal integration passed full Linux verification with SPIRV Tools and lavapipe enabled: run 37898813460, exact head 8740893, 479 tests passed three times and 25 graphics feature tests were skipped (504 registered tests, zero failures). Two unrelated graphics tests exceeded the project 30-second target on their cold run; no timeout occurred. No title run was performed. The repeated-pending case is covered at the mapper level; loopback timing is not used to force a second connection attempt to remain pending.
Open #2079 fixes accepted socket mode in the same runtime and test file; both TCP regression blocks are retained in the integration. #1091 implements readiness events and #1832 descriptor polling. No duplicate pending-connect fix was found.
Current Windows integration, based on upstream
d70b89989473ba1f6ae13e44e079e67f1f8a44b0, contains the 19 still-open proposals and excludes the three declined changes and the superseded build fix. Default and explicit libs builds passed at8f0190c793c6dfa2b7a3a3f33f3d2cbe2509937c; 513 tests passed and one was skipped (514 registered, 52.66 seconds). Five affected I/O and socket tests each passed ten repetitions. Removing only the production ConnectError call reproduced the public TCP pending-error failure on this Windows host; restoring it gave ten passes. Loopback may complete immediately on other hosts, so this is Windows call-site evidence rather than a guarantee that every Linux run exercises the pending path.The complete external #1091 (f94f030 and exact tip 7f5f456), #1832 (f782e4a), and #1676 (942a105) were also combined locally, preserving their authors. With the separate local SCE clock bridge and retained interaction fixtures, default/libs builds and 515 tests passed with one skip (516 registered, 38.46 seconds), at
e44f3ca62d9ae7c34df5e988e1fe981be79c4806. Seven affected socket, polling, timer, and clock tests passed five repetitions each. This is integration evidence for the named tests; no title execution is claimed.Checklist