mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 17:59:36 +01:00
Improve SSH handling
* Unify SSH code in SSHStore and LegacySSHStore. * Fix a race starting the SSH master. We now wait synchronously for the SSH master to finish starting. This prevents the SSH clients from starting their own connections. * Don't use a master if max-connections == 1. * Add a "max-connections" store parameter. * Add a "compress" store parameter.
This commit is contained in:
parent
7f62be1bcd
commit
577ebeaefb
7 changed files with 185 additions and 113 deletions
|
|
@ -22,7 +22,7 @@ class RemoteStore : public virtual Store
|
|||
{
|
||||
public:
|
||||
|
||||
RemoteStore(const Params & params, size_t maxConnections = std::numeric_limits<size_t>::max());
|
||||
RemoteStore(const Params & params);
|
||||
|
||||
/* Implementations of abstract store API methods. */
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ class UDSRemoteStore : public LocalFSStore, public RemoteStore
|
|||
{
|
||||
public:
|
||||
|
||||
UDSRemoteStore(const Params & params, size_t maxConnections = std::numeric_limits<size_t>::max());
|
||||
UDSRemoteStore(const Params & params);
|
||||
|
||||
std::string getUri() override;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue