MegaGlest Forum

MegaGlest => Bug reports => Topic started by: filux on 19 November 2014, 19:40:13

Title: v.3.9.1, message with download progress = 100% on the beginning of download
Post by: filux on 19 November 2014, 19:40:13
source of download was mods' centre

(http://i57.tinypic.com/r7ma9y.png)
Title: Re: v.3.9.1, message with download progress = 100% on the beginning of download
Post by: filux on 5 December 2015, 19:04:54
Recently I found out that downloading this archive (and another one vbross too) even manually using curl I see same effect, so this is probably related with archive/format/name/how it is stored on the server and less probably is related with some bug in the curl.
Title: Re: v.3.9.1, message with download progress = 100% on the beginning of download
Post by: tomreyn on 3 January 2016, 02:25:04
This is due to the HTTP redirect involved in the downloads from Softcoders' website, how curl handles them and how MegaGlest interprets (lib)curls' output.

When curl encounters a HTTP redirect and follows it, it will report 100% download at the time it follows the redirect, then for the actual download it finishes the download and reports 100% again. What MG does there is that it displays the progress of the first "download" (the HTTP redirection), not the second one.

There are several ways to fix this: