cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2957769 ] Retry causes access violation with URL part sets

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 12 Jul 2010 02:20:20 +0000

Bugs item #2957769, was opened at 2010-02-24 04:08
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2957769&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: client module
Group: crash
>Status: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Jon Sargeant (nordock)
Assigned to: Daniel Stenberg (bagder)
Summary: Retry causes access violation with URL part sets

Initial Comment:
An access violation occurs at main.c:5272 (the line below #ifdef HAVE_FTRUNCATE) if a transfers exceeds the maximum allotted time using the following curl options:

-f
-m 2
--retry 10
--retry-delay 1

and using a URL that consists of multiple parts. For example:

http://finance.yahoo.com/q/hp?s={JPM,C,BAC}

The problem is that outs.bytes is greater than zero, but outs.stream is null. It looks like you're resetting outs.bytes to zero inside the wrong loop. I solved the problem by inserting outs.bytes=0; on line 4615 just after outs.filename = outfile;

By the way, I'm using CURL 7.20.0.

----------------------------------------------------------------------

>Comment By: SourceForge Robot (sf-robot)
Date: 2010-07-12 02:20

Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2010-06-27 20:57

Message:
I can't repeat the problem. I just tried curl 7.21.0 with a command line
like below and I can't detect any problem. Please adjust the command line
accordingly for me so that the problem appears!

$ curl -m2 --limit-rate 1000 --retry 10 --retry-delay 1 ftp.sunet.se/ls-lR
-v -o dump

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2010-04-10 12:09

Message:
Thanks, can you please provide your suggested change as a diff -u output so
that I understand it perfectly?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2957769&group_id=976
Received on 2010-07-12

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET