diff options
| author | Grant Limberg <[email protected]> | 2023-04-28 11:03:28 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-28 11:03:28 -0700 |
| commit | e5fc89821f1ef46de6f4aa9664d2207e5745553b (patch) | |
| tree | a819d05f9d9423e02b4752e53ed6428402f15cb9 /controller/DBMirrorSet.cpp | |
| parent | 411e54023aa0b83d0c79ef91bbe2ddaec9422cd2 (diff) | |
use cpp-httplib for HTTP control plane (#1979)
refactored the old control plane code to use [cpp-httplib](https://github.com/yhirose/cpp-httplib) instead of a hand rolled HTTP server. Makes the control plane code much more legible. Also no longer randomly stops responding.
Diffstat (limited to 'controller/DBMirrorSet.cpp')
| -rw-r--r-- | controller/DBMirrorSet.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/controller/DBMirrorSet.cpp b/controller/DBMirrorSet.cpp index fd7f32a2..5d64ebf0 100644 --- a/controller/DBMirrorSet.cpp +++ b/controller/DBMirrorSet.cpp @@ -15,9 +15,12 @@ namespace ZeroTier { -DBMirrorSet::DBMirrorSet(DB::ChangeListener *listener) : - _listener(listener), - _running(true) +DBMirrorSet::DBMirrorSet(DB::ChangeListener *listener) + : _listener(listener) + , _running(true) + , _syncCheckerThread() + , _dbs() + , _dbs_l() { _syncCheckerThread = std::thread([this]() { for(;;) { |
