about summary refs log tree commit diff
path: root/src/libstore/ssh-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2017-01-19T17·21+0100
committerGitHub <noreply@github.com>2017-01-19T17·21+0100
commit8af062f372ae5db6a90700641f15d98505b4a839 (patch)
tree1c4f61be3cca82b3a03255557d9e5f3d87107018 /src/libstore/ssh-store.cc
parent21948deed99a3295e4d5666e027a6ca42dc00b40 (diff)
parent28db29786277ce6790ffb1567f9e679c62737b96 (diff)
Merge pull request #981 from shlevy/build-remote-c++
build-remote: Implement in C++
Diffstat (limited to 'src/libstore/ssh-store.cc')
-rw-r--r--src/libstore/ssh-store.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/ssh-store.cc b/src/libstore/ssh-store.cc
index 5166485226d9..3d01594009a0 100644
--- a/src/libstore/ssh-store.cc
+++ b/src/libstore/ssh-store.cc
@@ -49,6 +49,8 @@ SSHStore::SSHStore(string uri, const Params & params, size_t maxConnections)
     , uri(std::move(uri))
     , key(get(params, "ssh-key", ""))
 {
+    /* open a connection and perform the handshake to verify all is well */
+    connections->get();
 }
 
 string SSHStore::getUri()