[issue18643] implement socketpair() on Windows

Richard Oudkerk report at bugs.python.org
Fri Aug 16 17:52:06 CEST 2013


Richard Oudkerk added the comment:

Do you mean you want to use a pure python implementation on Unix?

Then you would have to deal with AF_UNIX (which is the default family for socketpair() currently).  A pure python implementation which deals with AF_UNIX would have to temporarily create a listening socket on the file system and deal with races like tempfile.mkstemp() does.  I think it is simpler to only use the pure python implementation on Windows.

BTW, it is possible for another process to connect to the address we temporily bind to.  Neither my version nor the one in tulip handle that correctly.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18643>
_______________________________________


More information about the Python-bugs-list mailing list