From 167d12b02cc8cadfaf7c28959532030d65687a8f Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Mon, 18 Jul 2016 18:50:27 -0400 Subject: build-remote: Implement in C++ --- src/libstore/ssh-store.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstore/ssh-store.cc') 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() -- cgit 1.4.1