guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: publish: Improve performance by increasing buffer


From: guix-commits
Subject: branch master updated: publish: Improve performance by increasing buffer size.
Date: Tue, 19 May 2020 17:15:49 -0400

This is an automated email from the git hooks/post-receive script.

rekado pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 5e3d169  publish: Improve performance by increasing buffer size.
5e3d169 is described below

commit 5e3d169945935b53325e6b738a307ba286751259
Author: Ricardo Wurmus <address@hidden>
AuthorDate: Tue May 19 23:14:30 2020 +0200

    publish: Improve performance by increasing buffer size.
    
    * guix/scripts/publish.scm (http-write): Increase socket send buffer.
---
 guix/scripts/publish.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/guix/scripts/publish.scm b/guix/scripts/publish.scm
index f5b2f5f..a00f08f 100644
--- a/guix/scripts/publish.scm
+++ b/guix/scripts/publish.scm
@@ -851,6 +851,7 @@ blocking."
                                                                          size)
                                                     client))
                           (output   (response-port response)))
+                     (setsockopt client SOL_SOCKET SO_SNDBUF (* 128 1024))
                      (if (file-port? output)
                          (sendfile output input size)
                          (dump-port input output))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]