cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Ranged downloads on file:// URLs

From: Daniel Egger <daniel_at_eggers-club.de>
Date: Mon, 7 Jan 2008 01:18:50 +0100

On 06.01.2008, at 22:54, Daniel Stenberg wrote:

> Sorry, but that's not the problem. If I append a trailing 0 it still
> fails, and it fails earlier than the data comparison. Reading log/
> stderr1020 after the failure shows this:

> 22:51:49.391581 * range-download from -9 to -1, totally 9 bytes

Hm, it tries to read from negative offsets? That seems completely weird.

> So if you can run my patch with this test case it is really weird...

Actually with your patch nothing does work as expected for me:

With my version:

lucy:~/curl/tests egger$ ../src/curl -r 1-4 file://`pwd`/log/
test1020.txt
2345lucy:~/curl/tests egger$

With your patch:

lucy:~/curl.test/tests egger$ ../src/curl -r 1-4 file://`pwd`/log/
test1020.txt
234567890
1234567890

This is on Mac OS 10.5.1 (Intel) BTW.

I don't have time to look into this the next couple of days. But I'll
try to
get back to that after.

Servus,
       Daniel
Received on 2008-01-07