about summary refs log tree commit diff
path: root/src/libutil/pool.hh
AgeCommit message (Collapse)AuthorFilesLines
2017-09-14 RemoteStore: Add option to drop old connections from the poolEelco Dolstra1-0/+10
This is a hack to make hydra-queue-runner free its temproots periodically, thereby ensuring that garbage collection of the corresponding paths is not blocked until the queue runner is restarted. It would be better if temproots could be released earlier than at process exit. I started working on a RAII object returned by functions like addToStore() that releases temproots. However, this would be a pretty massive change so I gave up on it for now.
2017-04-26 Add Store nesting to fix import-from-derivation within filterSourceShea Levy1-0/+16
2017-03-03 Pool: Don't hang if creating a connection failsEelco Dolstra1-0/+1
2017-03-03 Improve SSH handlingEelco Dolstra1-1/+6
* 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.
2016-11-26 Revert "Get rid of unicode quotes (#1140)"Eelco Dolstra1-2/+2
This reverts commit f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7. There really is no need for such a massive change...
2016-11-25 Get rid of unicode quotes (#1140)Guillaume Maudoux1-2/+2
2016-02-24 std::condition_variable_any -> std::condition_variableEelco Dolstra1-1/+1
The latter is supposed to be more efficient.
2016-02-24 C++ templates are just a glorified macro facilityEelco Dolstra1-2/+2
2016-02-24 Remove bad daemon connections from the poolEelco Dolstra1-4/+14
This is necessary for long-running processes like hydra-queue-runner: if a nix-daemon worker is killed, we need to stop reusing that connection.
2016-02-23 Pool<T>: Allow a maximum pool sizeEelco Dolstra1-15/+54
2016-02-23 RemoteStore: Make thread-safeEelco Dolstra1-0/+102
This allows a RemoteStore object to be used safely from multiple threads concurrently. It will make multiple daemon connections if necessary. Note: pool.hh and sync.hh have been copied from the Hydra source tree.