Skip to content

Commit

Permalink
Maximize cURL buffer size
Browse files Browse the repository at this point in the history
Allows higher download throughput (from ~2 MB/s to ~60 MB/s at 120FPS)

This has no effect for curl versions older than 7.53.0 (for which the
buffer can only be shrunk below 16k)
  • Loading branch information
mickael9 authored and zturtleman committed Apr 9, 2018
1 parent 63e59a4 commit e986384
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/client/cl_curl.c
Expand Up @@ -301,6 +301,7 @@ void CL_cURL_BeginDownload( const char *localName, const char *remoteURL )
qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_MAXREDIRS, 5);
qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_PROTOCOLS,
CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | CURLPROTO_FTPS);
qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_BUFFERSIZE, CURL_MAX_READ_SIZE);
clc.downloadCURLM = qcurl_multi_init();
if(!clc.downloadCURLM) {
qcurl_easy_cleanup(clc.downloadCURL);
Expand Down

0 comments on commit e986384

Please sign in to comment.