mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
2e0f442a24
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 |
||
---|---|---|
.. | ||
thrift | ||
__init__.py | ||
dirstate.py |