summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-06-30 22:15:15 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-06-30 22:15:15 (GMT)
commit45f396328a2fcd319b7c98ce072b32e6b22634a3 (patch)
treee37c16fa247951ae1f1a7349cd3129e0ffceaf5a
parent870a7d2dbfe3d80738305781217e0610c64450db (diff)
set buffer size for 1MB for archiv importer
-rw-r--r--rhimport/fetcher.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rhimport/fetcher.go b/rhimport/fetcher.go
index b78ea02..45d2e7b 100644
--- a/rhimport/fetcher.go
+++ b/rhimport/fetcher.go
@@ -286,6 +286,8 @@ func fetchFileArchiv(ctx *Context, res *Result, uri *url.URL) (err error) {
easy.Setopt(curl.OPT_PROGRESSFUNCTION, curlProgressCallback)
easy.Setopt(curl.OPT_PROGRESSDATA, cbdata)
+ easy.Setopt(curl.OPT_BUFFERSIZE, 1024*1024)
+
rhdl.Printf("importing archiv file from %s", scpuri)
err = easy.Perform()
var convOut string