download: Reinstate buffering on connection sockets.

* guix/build/download.scm (open-connection-for-uri): Reinstate call to
  'setvbuf' inadvertently removed in d17551d9.
master
Ludovic Courtès 2015-05-06 09:50:15 +02:00
parent 0ffcf7cc80
commit c822fb8e34
1 changed files with 3 additions and 0 deletions

View File

@ -218,6 +218,9 @@ host name without trailing dot."
(thunk)))))))
(with-https-proxy
(let ((s (open-socket-for-uri uri)))
;; Buffer input and output on this port.
(setvbuf s _IOFBF %http-receive-buffer-size)
(if https?
(tls-wrap s (uri-host uri))
s)))))