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] #1287 CURLOPT_BUFFERSIZE is ignored when downloading file:// url

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Sat, 05 Oct 2013 21:17:46 +0000

Thanks!

I can see (1) but not (2) and since this now made the patch rather big I would like to ask you for a test case that repeats the second problem so that we can make sure your fix fixes it!

The tests in the 5xx and 15xx ranges are existing libcurl tests that show pretty well how a test case can be done. Otherwise I can help out if you tell me in more details exactly how to repeat the problem.

---
** [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-05

These mail archives are generated by hypermail.

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

File upload with ASP.NET