fix(libkernel): inherit listener mode on accepted sockets #3958
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3958"
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-11T19:54:44Z.
What
Carries Hussein Kadhim's fix for #3938, preserving the original commit author. Accepted sockets now inherit the listener's tracked non-blocking mode, keeping
fcntl(F_GETFL)and the actual socket behavior consistent. The new test covers blocking and non-blocking listeners, accepted socket flags, and non-blocking receive behavior.Tested
BUILD_TESTING=ON, on currentmain4be9c255: builtguest_tcp_tests;guest_tcppassed 1/1.fcntl,FIONBIO, descriptor duplication,recv, andpoll.tools/check_conventions.py --base upstream/mainandgit diff --checkpassed.Checklist
main; no other open PR implements this behaviorImported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-11T20:43:55Z.
Windows run of this head (
e887133ed, onmain12c226628): Windows 11 (26300), WinLibs GCC 15.2.0 r7, Release, full build.guest_tcp,guest_udp,guest_socket_read_write,guest_poll,guest_socket_pair,guest_dupandguest_socket_events: 7/7 pass in 3 runs.Udp.cppreverted tomain,guest_tcpaborts (0xc0000409) in the newAcceptedSocketsFollowListenerBlockingtest, so on Windows the test catches the bug and the fix is what makes it pass.main()inGuestTcp.cpp, so any two of them conflict there (Udp.cppmerges cleanly). The second and third to land will need a small rebase.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T08:24:41Z.
Same as #3947:
core/libs/tests/GuestTcp.cppconflicts with main after #3957; please rebase.