net: return copied bytes for truncated datagram receives #510
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!510
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/510/head"
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?
@MehmetCambaz on GitHub · 2026-09-08 13:49 UTC · original
MehmetCambaz:fix/udp-truncated-receive→main· +12 −7 · 1 files · 1 commits · merged 2026-09-12 13:51 UTCOn Windows, receiving an 8-byte UDP datagram into a 3-byte buffer returns
WSAEMSGSIZEeven though Winsock copied the first 3 bytes. Return that copied length to the guest and convert the sender address after handling truncation. Other receive errors and send errors retain their existing handling.The patch changes only
src/libs/network.cpp. No test files or CMake/CTest changes are included.Validation: the unchanged production fix compiled with Clang on Linux and passed the datagram and full filesystem checks before their test additions were removed from the patch.
git diff --checkpasses. Native Windows execution was not rerun, so those Linux checks do not validate the Windows-specific branch.