From d65bb58317468af7f0702a60784e3615a622458a Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 24 Mar 2020 20:34:49 +0000 Subject: [PATCH] HTTP: increase the Curl download buffer size This improves download performance with large files, i.e, most of them. --- simgear/io/HTTPClient.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/io/HTTPClient.cxx b/simgear/io/HTTPClient.cxx index f6533161..f926e6a4 100644 --- a/simgear/io/HTTPClient.cxx +++ b/simgear/io/HTTPClient.cxx @@ -273,7 +273,7 @@ void Client::makeRequest(const Request_ptr& r) curl_easy_setopt(curlRequest, CURLOPT_WRITEDATA, r.get()); curl_easy_setopt(curlRequest, CURLOPT_HEADERFUNCTION, requestHeaderCallback); curl_easy_setopt(curlRequest, CURLOPT_HEADERDATA, r.get()); - + curl_easy_setopt(curlRequest, CURLOPT_BUFFERSIZE, CURL_MAX_READ_SIZE); curl_easy_setopt(curlRequest, CURLOPT_USERAGENT, d->userAgent.c_str()); curl_easy_setopt(curlRequest, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);