aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1406
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-04-24 12:03:08 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-04-25 11:02:19 +0200
commit96ece5c0eef0ca4953ec306e59fd7aa8d48be793 (patch)
tree6b8296148514134964e4a54de4796be40eb8c04f /tests/data/test1406
parente698b822877898c44f0ee809b17aff8437674128 (diff)
curl: set a 100K buffer size by default
Test command 'time curl http://localhost/80GB -so /dev/null' on a Debian Linux. Before (middle performing run out 9): real 0m28.078s user 0m11.240s sys 0m12.876s After (middle performing run out 9) real 0m26.356s (93.9%) user 0m5.324s (47.4%) sys 0m8.368s (65.0%) Also, doing SFTP over a 200 millsecond latency link is now about 6 times faster. Closes #1446
Diffstat (limited to 'tests/data/test1406')
-rw-r--r--tests/data/test14061
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/data/test1406 b/tests/data/test1406
index 6276b9e97..033957f60 100644
--- a/tests/data/test1406
+++ b/tests/data/test1406
@@ -75,6 +75,7 @@ int main(int argc, char *argv[])
slist1 = curl_slist_append(slist1, "recipient.two@example.com");
hnd = curl_easy_init();
+ curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
curl_easy_setopt(hnd, CURLOPT_INFILESIZE_LARGE, (curl_off_t)38);
curl_easy_setopt(hnd, CURLOPT_URL, "smtp://%HOSTIP:%SMTPPORT/1406");
curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);