[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port
David Cuthbert
report at bugs.python.org
Tue Nov 19 19:33:12 EST 2019
David Cuthbert <dacut at kanga.org> added the comment:
I'm working on patches for the deprecation bits (targeting 3.6 for now; will work my way up from there) for review, including documentation. Unless someone tells me to stop. :-)
In an attempt to make this not-so-Linux-specific, I'm reviewing how this works on non-Linux platforms (MacOS, FreeBSD) as well.
Reading Linux's socket(7) man page makes it seem like reuse_port is the issue (but that actually has protections to ensure you're only doing it across the same UID at least). I had to write my own test jig to (re-)convince myself that, indeed, reuse_addr is the problem.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37228>
_______________________________________
More information about the Python-bugs-list
mailing list