
#Robo 3t no unix socket support on windows full#
If one day Windows support full AF_UNIX, we can remove _WIN_AF_UNIX and add standard AF_UNIX. if someone really need high performance, he/she can uses this undocumented flag privately. only use _WIN_AF_UNIX in stdlib, this is a black-box optimization. if (building SDK >= 1804 and run-time Windows >= 1804), add a undocumented flag _WIN_AF_UNIX, its value is equal to AF_UNIX. The current AF_UNIX address family of Windows10 doesn't support datagram, adding this flag may break some cross-platform code: It is true that it's a subset of what appears to be supported on Linux/Unix. In mind this isn't breaking datagram support. The changes will only add the flag on Windows, and will enable stream sockets to use AF_UNIX on Windows. I don't know if datagram support is coming to AF_UNIX on Windows. If adding this flag will break a lot of code, due to lacking supports to datagram, maybe we should not add AF_UNIX at once, and waiting for full support to AF_UNIX. It would be nice to investigate the habit of using AF_UNIX in Python code on GitHub: Have you upgraded the building SDK that supports AF_UNIX?Īnd should remove AF_UNIX flag at runtime on systems older than Windows 10 1804, see issue32394. This results in the code falling back to AbstractServer.create_unix_server which raises NotImplementedError. The first failure I looked at was caused by ProactorEventLoop in windows_events.py not providing a windows-specific version of create_unix_server. However there were 26 test failures in test_asyncio tests, with only the naive changes to all AF_UNIX to work with the socket class on Windows. Is anyone else actively investigating this? I did a prelinary investigation and the impact on test in test_sockets was pretty simple.

I've been asked by my team to investigate what is required to enable AF_UNIX in Python. Unix socket (AF_UNIX) is now avalible in Windows 10 (April 2018 Update). Jeffrey.Kintscher, Paul Monson, eric.smith, filips123, giampaolo.rodola, graingert, malin, paul.moore, steve.dower, tim.golden, zach.wareĬreated on 10:35 by filips123, last changed 14:59 by admin.
