cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] Re: #1287 CURLOPT_BUFFERSIZE is ignored when downloading file:// url

From: Maxim <max4656_at_users.sf.net>
Date: Thu, 03 Oct 2013 09:16:14 +0000

Here it is)
There were 2 problems:
1) BUFFERSIZE problem described above
2) the whole file was read at once (significant lag and high memory usage for large files)

---
** [bugs:#1287] CURLOPT_BUFFERSIZE is ignored when downloading file:// url**
**Status:** open-confirmed
**Created:** Wed Oct 02, 2013 08:41 AM UTC by Maxim
**Last Updated:** Wed Oct 02, 2013 01:22 PM UTC
**Owner:** Daniel Stenberg
When downloading a file, write buffer is always 16383 bytes, CURLOPT_BUFFERSIZE is ignored.
The test file is attached.
I'm using the latest version from git (as of 1 Oct 2013, commit 3d43a487813a94dc8521bd8d970725efbd922bf7)
For the given test file an input file is generated as follows:
> $ dd if=/dev/urandom of=/tmp/curlin.tmp bs=1 count=50000
and for that input file I receive the following output:
> handles OK
    write_callback: total 16383
    write_callback: total 16383
    write_callback: total 16383
    write_callback: total 851
    upload result: count 0, No error
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2013-10-03

These mail archives are generated by hypermail.

donate! Page updated May 06, 2013.
web site info

File upload with ASP.NET