diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2020-11-10 16:59:13 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2020-11-16 00:04:32 -0500 |
commit | 630602831dd93e7bc9a8e64fba958300e8cb0474 (patch) | |
tree | e12c2332119aeda7adacff5750b16d8214bdd127 /tests/guix-hash.sh | |
parent | 62343288ef6dc56027d268ef773ae699a4bbb76d (diff) |
publish: Harmonize buffer size values and configuration.
This change harmonizes the way we configure the buffer sizes and the socket
options, so that we don't forget to change it at one place like it happened in
commit 5e3d169945935b53325e6b738a307ba286751259.
* guix/scripts/publish.scm (%default-buffer-size)
(%default-socket-options): New variables.
* guix/scripts/publish.scm (configure-socket): New procedure.
(compress-nar): Use %default-buffer-size for the buffer size, increased from
128 to 208 KiB.
(nar-response-port): Likewise, increased from 64 to 208 KiB.
(http-write): Use configure-socket to set socket options.
(open-server-socket): Likewise.
Diffstat (limited to 'tests/guix-hash.sh')
0 files changed, 0 insertions, 0 deletions