git-annex/RemoteDaemon
Joey Hess e152c322f8
refactor ref change watching
Added to change notification to P2P protocol.

Switched to a TBChan so that a single long-running thread can be
started, and serve perhaps intermittent requests for change
notifications, without buffering all changes in memory.

The P2P runner currently starts up a new thread each times it waits
for a change, but that should allow later reusing a thread. Although
each connection from a peer will still need a new watcher thread to run.

The dependency on stm-chans is more or less free; some stuff in yesod
uses it, so it was already indirectly pulled in when building with the
webapp.

This commit was sponsored by Francois Marier on Patreon.
2016-12-09 15:01:09 -04:00
..
Transport refactor ref change watching 2016-12-09 15:01:09 -04:00
Common.hs make LocalRepo a newtype 2016-06-02 16:34:52 -04:00
Core.hs avoid remotedaemon outputting misc Messages when running 2016-12-08 18:42:59 -04:00
Transport.hs remotedaemon: serve tor hidden service 2016-11-20 15:48:12 -04:00
Types.hs refactor ref change watching 2016-12-09 15:01:09 -04:00