#1102 Curl_follow should reset progress' size_dl

closed-fixed
http (206)
5
2013-06-21
2012-03-22
No

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.

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2012-03-22

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

     
  • Michael Wallner

    Michael Wallner - 2012-03-23

    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

     
  • Michael Wallner

    Michael Wallner - 2012-03-29

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

     
  • Daniel Stenberg

    Daniel Stenberg - 2012-03-30

    Nope, I've managed to repeat the problem in my end.

     
  • Daniel Stenberg

    Daniel Stenberg - 2012-03-31
    • status: open --> closed-fixed
     
  • Daniel Stenberg

    Daniel Stenberg - 2012-03-31

    Fixed in git, commit c44d45db86b880df5fac. Verified with the new test case 599.

    Thanks a lot for your report!

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks