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-3510057 ] Curl_follow should reset progress' size_dl

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 29 Mar 2012 01:25:47 -0700

Bugs item #3510057, was opened at 2012-03-22 05:01
Message generated for change (Comment added) made by mike-php-net
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3510057&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: http
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Michael Wallner (mike-php-net)
Assigned to: Daniel Stenberg (bagder)
Summary: Curl_follow should reset progress' size_dl

Initial Comment:
Curl_follow does reset progress times on transfer.c:1927, but not the progress' sizes, so when a redirect occurs and the size_dl of the new URL is not known, the progress callback will receive the previous transfer's size_dl as dltotal.

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

>Comment By: Michael Wallner (mike-php-net)
Date: 2012-03-29 01:25

Message:
Hi, just wanted to know if more information is needed?

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

Comment By: Michael Wallner (mike-php-net)
Date: 2012-03-22 23:21

Message:
Sorry for the line wraps... http://pastie.org/3652781

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

Comment By: Michael Wallner (mike-php-net)
Date: 2012-03-22 23:20

Message:
Sure, downloaded 5000% of google.at:

$ curl -L http://google.com >/dev/null
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
100 219 100 219 0 0 998 0 --:--:-- --:--:-- --:--:--
2406
100 218 100 218 0 0 507 0 --:--:-- --:--:-- --:--:--
507
5108 218 5108 11137 0 0 17038 0 --:--:-- --:--:-- --:--:--
17038

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

Comment By: Daniel Stenberg (bagder)
Date: 2012-03-22 15:26

Message:
Ah. Any chance you can help us produce a recipe/test case that shows this
happening?

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3510057&group_id=976
Received on 2012-03-29

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET