libkernel: a stream send on a connection the peer closed fails with ECONNABORTED/ECONNRESET on Windows, FreeBSD 11.4 fails with EPIPE #8669
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 xXPBSXx on 2026-10-20T20:36:45Z.
Repro
Windows host. Connected stream pair; the peer calls
close; the other end callssend(s, buf, n, MSG_NOSIGNAL)repeatedly.Expected (FreeBSD 11.4
sosend_generic, sys/kern/uipc_socket.c:1260-1264): -1/EPIPE (32), because a socket that can send no more fails with EPIPE beforeso_erroris looked at.Actual: -1/ECONNABORTED (53) or ECONNRESET (54), the Winsock
WSAECONNABORTED/WSAECONNRESETmapped as is.guest_tcp,guest_socket_read_writeandguest_socket_pairskip the check on Windows.Test: the three tests above (the check now runs on Windows).
Fix branch: https://github.com/xXPBSXx/AnyPS5/tree/fix/stream-send-after-reset-epipe
AI-assisted (Claude Code).