about summary refs log tree commit diff
path: root/src/libstore/remote-store.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-03-03T18·35+0100
committerEelco Dolstra <edolstra@gmail.com>2017-03-03T18·36+0100
commitd1158bb8168804b27508972988d4b85ba9d5e49d (patch)
tree373f7adac5525ddd9abdb81264755c65669fa2c1 /src/libstore/remote-store.hh
parent8490ee37a6dbfb66e1b3dbaf88918bea044b143a (diff)
Cache connection failures
Diffstat (limited to 'src/libstore/remote-store.hh')
-rw-r--r--src/libstore/remote-store.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/remote-store.hh b/src/libstore/remote-store.hh
index ed7b27c88866..66540a2a2ec1 100644
--- a/src/libstore/remote-store.hh
+++ b/src/libstore/remote-store.hh
@@ -98,6 +98,8 @@ protected:
         void processStderr(Sink * sink = 0, Source * source = 0);
     };
 
+    ref<Connection> openConnectionWrapper();
+
     virtual ref<Connection> openConnection() = 0;
 
     void initConnection(Connection & conn);
@@ -106,6 +108,8 @@ protected:
 
 private:
 
+    std::atomic_bool failed{false};
+
     void setOptions(Connection & conn);
 };