Windows: a send after shutdown(SHUT_WR) fails with EIO instead of EPIPE #1785
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 Zurisen on 2026-10-08T19:10:01Z.
On main (
55e8959b), sending on a socket that was shut down for writing fails with errno 5 (EIO) on Windows. FreeBSDsend(2)fails withEPIPE(32) there, and Linux already reports 32. Not specific to one title.Winsock fails
send/sendtoaftershutdown(SD_SEND)orshutdown(SD_BOTH)withWSAESHUTDOWN(10058). Neither Windows error map handles it, so it falls todefault: return 5:NativeError(Udp.cpp):send,sendto,sendmsgnative_error(Export.cpp):sceNetSend,sceNetSendto,sceNetSendmsgThe Linux branches of both maps translate the host's
EPIPEto 32.Reproduced on Windows 11 (10.0.26200), MinGW-w64 GCC 15.2.0, on a loopback TCP pair:
shutdown(client, 1)thensend(client, ...)returns -1 with errno 5;sceNetShutdown(client, 1)thensceNetSend(client, ...)returns0x80410105.Fixed in #1786.