lix/src
Eelco Dolstra 90ad02bf62 Enable HTTP/2 support
The binary cache store can now use HTTP/2 to do lookups. This is much
more efficient than HTTP/1.1 due to multiplexing: we can issue many
requests in parallel over a single TCP connection. Thus it's no longer
necessary to use a bunch of concurrent TCP connections (25 by
default).

For example, downloading 802 .narinfo files from
https://cache.nixos.org/, using a single TCP connection, takes 11.8s
with HTTP/1.1, but only 0.61s with HTTP/2.

This did require a fairly substantial rewrite of the Downloader class
to use the curl multi interface, because otherwise curl wouldn't be
able to do multiplexing for us. As a bonus, we get connection reuse
even with HTTP/1.1. All downloads are now handled by a single worker
thread. Clients call Downloader::enqueueDownload() to tell the worker
thread to start the download, getting a std::future to the result.
2016-09-14 16:36:02 +02:00
..
boost Force stack trace for boost format errors 2016-03-02 15:46:07 +01:00
buildenv Fix Fedora build 2016-08-30 13:56:22 +02:00
download-via-ssh More cleanup 2015-07-20 01:16:16 +02:00
libexpr Enable HTTP/2 support 2016-09-14 16:36:02 +02:00
libmain Remove $NIX_DB_DIR 2016-08-10 18:05:35 +02:00
libstore Enable HTTP/2 support 2016-09-14 16:36:02 +02:00
libutil Add a toLower utility function 2016-09-14 14:58:49 +02:00
nix Fix 32-bit build 2016-08-30 17:38:09 +02:00
nix-build Fix build on GCC 4.9 2016-09-12 13:22:23 +02:00
nix-channel Enable HTTP/2 support 2016-09-14 16:36:02 +02:00
nix-collect-garbage Eliminate reserveSpace flag 2016-02-24 17:44:55 +01:00
nix-daemon Mark content-addressed paths in the Nix database and in .narinfo 2016-08-10 18:05:35 +02:00
nix-env nix path-info: Add --json flag 2016-08-29 17:29:24 +02:00
nix-instantiate Allow setting the state directory as a store parameter 2016-06-02 16:02:48 +02:00
nix-prefetch-url Enable HTTP/2 support 2016-09-14 16:36:02 +02:00
nix-store Add a "root" parameter to local stores 2016-08-10 18:05:35 +02:00
resolve-system-dependencies iterate through fat_headers correctly 2016-08-17 10:24:11 -07:00