sapling/eden
Adam Simpkins db1f93b2aa add new UnixSocket and UnixSocketFuture helper classes
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
2018-01-05 13:35:46 -08:00
..
cli have eden list show whether mount points are active or not 2018-01-04 12:12:56 -08:00
docs add an overview doc for our threading strategy 2017-12-12 12:51:23 -08:00
facebook Migrate TARGETS files from @/ to // 2017-12-20 16:57:41 -08:00
fs add new UnixSocket and UnixSocketFuture helper classes 2018-01-05 13:35:46 -08:00
hooks Migrate TARGETS files from @/ to // 2017-12-20 16:57:41 -08:00
integration fix edenfs_logging_settings in integration tests 2017-12-22 12:36:25 -08:00
py support reading the old .hg/dirstate format 2017-11-07 14:17:37 -08:00
scripts add a script to force unmounting all edenfs mounts 2017-11-15 11:48:38 -08:00
third-party remove dep on libfuse 2018-01-02 16:36:16 -08:00
AUTODEPS Set up arc lint to run autodeps automatically for Eden. 2017-11-21 18:23:41 -08:00
DEFS Migrate TARGETS files from @/ to // 2017-12-20 16:57:41 -08:00