1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-21 09:49:36 +01:00

Cache connection failures

This commit is contained in:
Eelco Dolstra 2017-03-03 19:35:34 +01:00
parent 8490ee37a6
commit d1158bb816
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 18 additions and 1 deletions

View file

@ -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);
};