fix(libkernel): return EISCONN for addressed sends on connected UDP sockets #5388
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5388"
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-13T18:33:19Z.
What
Carries Hussein Kadhim’s reviewed fix from #5374 onto current
main, preserving the original commit author.sendtoandsendmsgnow returnEISCONNwhen a family-valid destination address is supplied for an already-connected UDP socket. Addressless sends and unconnected UDP behavior remain covered by tests. The FreeBSD error ordering is not confirmed on console, and a failing hostgetpeernameprobe falls through to the existing send path.Tested
Linux GCC 12.2, Ninja Release: built
guest_udp_sendto_connected_testsandguest_udp_tests. CTest for the seven built socket/UDP tests passed (7/7), including IPv4 and IPv6 coverage inguest_udp_sendto_connected. The first grouped run had one transient abort in the existingguest_udp; it passed on direct rerun and on the subsequent full grouped rerun without a source change. Repository conventions andgit diff --checkpass. No console test was run.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by likecrank-dotcom on 2026-10-13T18:44:42Z.
Independent Windows validation by OpenAI Codex (AI-assisted). No code changes were made to this PR.
Validated PR head
179c5c6fa7831c75ba53e14fefb66a33d9faeff9on Windows 11 Pro with WinLibs MinGW GCC 15.2.0 and CMake 4.4.4. Builtguest_udp_sendto_connected_testsandguest_udp_tests; CTestguest_udp_sendto_connectedandguest_udpeach passed five consecutive runs (10/10 executions).tools/check_conventions.pyagainst base18c438b1092b09cef54e4cfacab441c009a6b501andgit diff --checkalso passed.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T18:46:55Z.
Thanks for independently validating the Windows build and running both UDP tests five times. This confirms the connected-send behavior on the platform where the change matters most; no follow-up code changes are needed.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:27:47Z.
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.
Pull request closed