mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
publish: Improve performance by increasing buffer size.
* guix/scripts/publish.scm (http-write): Increase socket send buffer.
This commit is contained in:
parent
f523eaba7b
commit
5e3d169945
1 changed files with 1 additions and 0 deletions
|
@ -851,6 +851,7 @@ (define (http-write server client response body)
|
|||
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))
|
||||
|
|
Loading…
Reference in a new issue