diff options
author | Christopher Baines <mail@cbaines.net> | 2021-05-13 23:07:18 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-05-13 23:07:18 +0100 |
commit | 6bbb0911e3b5df4efbeec12fa5207a0197e885fd (patch) | |
tree | d69537e54e8e1c735d933103a48d57ccd0750ce5 | |
parent | f5c64265c8e23d02472d15edcf9e9cc5e6cd0c85 (diff) | |
download | build-coordinator-6bbb0911e3b5df4efbeec12fa5207a0197e885fd.tar build-coordinator-6bbb0911e3b5df4efbeec12fa5207a0197e885fd.tar.gz |
Buffer the network socket used for streaming http requests
As this helps improve throughput.
-rw-r--r-- | guix-build-coordinator/utils.scm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/guix-build-coordinator/utils.scm b/guix-build-coordinator/utils.scm index 2b0b34c..f35e9f1 100644 --- a/guix-build-coordinator/utils.scm +++ b/guix-build-coordinator/utils.scm @@ -267,6 +267,7 @@ upcoming chunk." #:port port))) (set-port-encoding! port "ISO-8859-1") + (setvbuf port 'block (expt 2 20)) (with-exception-handler (lambda (exp) (simple-format #t "error: PUT ~A: ~A\n" (uri-path uri) exp) |