cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Poor HTTP POST upload performance

From: Aleksandar Lazic <al-curllibrary_at_none.at>
Date: Tue, 14 Apr 2015 10:52:53 +0200

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
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-04-14