mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 00:22:57 -05:00
When the address came during the wait, the host receive that followed waited its whole SO_RCVTIMEO again, so a receive could take up to twice the timeout. FreeBSD's soreceive_dgram sleeps once per timeout. Now the receive waits for a datagram with WSAPoll only for what is left of the timeout, and fails with EAGAIN when it runs out, as before. Nothing changes when the socket already had an address or has no timeout.