mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 04:59:27 -05:00
download: Reinstate buffering on connection sockets.
* guix/build/download.scm (open-connection-for-uri): Reinstate call to
'setvbuf' inadvertently removed in d17551d9
.
This commit is contained in:
parent
0ffcf7cc80
commit
c822fb8e34
1 changed files with 3 additions and 0 deletions
|
@ -218,6 +218,9 @@ (define https?
|
||||||
(thunk)))))))
|
(thunk)))))))
|
||||||
(with-https-proxy
|
(with-https-proxy
|
||||||
(let ((s (open-socket-for-uri uri)))
|
(let ((s (open-socket-for-uri uri)))
|
||||||
|
;; Buffer input and output on this port.
|
||||||
|
(setvbuf s _IOFBF %http-receive-buffer-size)
|
||||||
|
|
||||||
(if https?
|
(if https?
|
||||||
(tls-wrap s (uri-host uri))
|
(tls-wrap s (uri-host uri))
|
||||||
s)))))
|
s)))))
|
||||||
|
|
Loading…
Reference in a new issue