cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Poor HTTP POST upload performance

From: Bryan Christ <bryan.christ_at_gmail.com>
Date: Tue, 14 Apr 2015 12:38:33 -0500

Version is 7.35.0 which is what comes with Ubunutu 14.04.2 LTS.

On Tue, Apr 14, 2015 at 3:52 AM, Aleksandar Lazic <al-curllibrary_at_none.at>
wrote:

> Dear Bryan
>
> Am 14-04-2015 04:01, schrieb Bryan Christ:
>
> I've been trying to figure out why http POST uploads are so slow with
>> libcurl. Upload speeds continually perform at about 1/10th of the expected
>> performance (or less). Many users have reported this behavior on our forum.
>> I suspect it has a lot to do with CURL_MAX_WRITE_SIZE being set to 16k.
>> Uploads to these same servers through other means (JavaScript for example)
>> reach their expected throughput. The code in question can be seen here:
>>
>> https://github.com/MediaFire/mediafire-fuse/blob/master/utils/http.c [1]
>> (at approx line 314)
>>
>> Assuming the issue is the 16K buffer limit, are there any other options?
>> Asking users to recompile a custom libcurl with a larger buffer size is not
>> very palatable.
>>
>
> Which version of libcurl is used?
>
> http://curl.haxx.se/libcurl/c/curl_version.html
>
> BR Aleks
>
> --
>>
>> Bryan
>> <><
>>
>> -------------------------------------------------------------------
>> List admin: http://cool.haxx.se/list/listinfo/curl-library [2]
>> Etiquette: http://curl.haxx.se/mail/etiquette.html [3]
>>
>
>
> Links:
> ------
> [1] https://github.com/MediaFire/mediafire-fuse/blob/master/utils/http.c
> [2] http://cool.haxx.se/list/listinfo/curl-library
> [3] http://curl.haxx.se/mail/etiquette.html
>

-- 
Bryan
<><

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-04-14