sapling/eden/fs/py
Adam Simpkins 2e0f442a24 work around slightly broken AF_UNIX connect() behavior on Windows
Summary:
On Windows calling `connect()` on an AF_UNIX socket path that does not exist
creates a file at that location.  This is problematic as it now prevents
servers from binding to that path.  Even if the server attempts to remove the
file in order to bind, clients attempting to call `connect()` can race with it
and make binding fail.

This updates our client connection code check to see if the file exists before
attempting to call `connect()`.  This can still race with a server that is
trying to remove an old socket and re-bind, but it at least makes the race
less likely to happen.

Reviewed By: genevievehelsel

Differential Revision: D21410571

fbshipit-source-id: 3df63b19b40b25be98108246186a48a379cdab28
2020-05-05 15:03:57 -07:00
..
eden work around slightly broken AF_UNIX connect() behavior on Windows 2020-05-05 15:03:57 -07:00
test Add new workloads to fiosynth 2020-04-30 21:50:17 -07:00
CMakeLists.txt update build configuration information for Python and C++ 2020-04-22 12:48:47 -07:00