mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
db1f93b2aa
Summary: Add new classes that help send data, file descriptors, and credential information over unix domain sockets. UnixSocket provides a low-level, raw callback API, similar to that provided by the classes in folly/io/async/. UnixSocketFuture is a slightly higher-level wrapper class that provides a Future-based API on top of this. I expect that most places in eden will probably use the UnixSocketFuture API, but callers that repeatedly wait for new messages (like the privhelper server) may want to use the raw callback API instead. This will help simplify several places in eden that communicate over unix domain sockets. Both the privhelper code and the takeover code needs to send file descriptors over unix domain sockets. They currently each use their own separate message handling logic for this. We currently communicate with the hg_import_helper.py script over a pipe, but this could easily be switched to use this new UnixSocket class as well. Reviewed By: wez Differential Revision: D6494981 fbshipit-source-id: 80bd7f06e5b884fc4148162e1a8a3b478acce209 |
||
---|---|---|
.. | ||
cli | ||
docs | ||
fs | ||
hooks | ||
integration | ||
py | ||
scripts | ||
third-party | ||
AUTODEPS | ||
DEFS |