Skip to content

Conversation

@fantix
Copy link
Member

@fantix fantix commented Apr 28, 2020

As per #304, Linux is not setting msg_name for receiving from e.g. UDP socket pair. CPython and asyncio will parse the peer address into None. However on macOS, msg_name is set to a AF_UNIX sockaddr correctly, so the peer address is an empty string "". This PR tries to maintain the same behavior as CPython asyncio.

@fantix fantix requested a review from 1st1 April 28, 2020 00:06
@fantix fantix merged commit 9e017e6 into MagicStack:master Apr 28, 2020
@fantix fantix deleted the t304 branch April 28, 2020 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uvloop does not support original unix udp socketpair

2 participants