Hi,

Now I have eventually found an example again for the wrong progress bar output
when continued output is started again at the beginning. It isn't exactly the
case I had seen before with internal restarts, actually it is even simpler and
the wrong output is more obvious.

First the protocol:

wget -c http://www.somehost.com/somefile.jpg

--18:58:58--  http://www.somehost.com/somefile.jpg
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 157962 (154K) [image/jpeg]
The sizes do not match (local 150780) -- retrieving.

--18:58:59--  http://www.somehost.com/somefile.jpg
Connecting to localhost|127.0.0.1|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 157962 (154K) [image/jpeg]
Saving to: `somefile.jpg'

51% [=============================>                              ] 157,962
5.37K/s   in 3m 45s

19:02:53 (702 B/s) - `somefile.jpg' saved [157962/157962]

One can see that it had only a rest of about 7K to transfer but started at the
beginning again. The file is transferred correctly, but the output looks
"weird". it is neither the correct output for a continued transfer nor the
correct output for a complete transfer.

Further examination of such cases showed that a Byte-Range transfer was
requested by wget, but was not done by the server. On most normal cases this
cannot happen, because wget first examines the headers and does these requests
only when they are advertized by the server. The situation, where this does
happen nevertheless, is very complicated and rare and envolves local and remote
proxies again. The server here seems to do some load-balancing with several
hosts (multiple IP-numbers per DNS) and when also a local proxy is in between,
it can happen that every HTTP-request lands on a different host with possibly
different behaviour and it can happen that we have another case of a
discrepancy between the result of a HEAD and a later GET.

Best regards,

Jochen Roderburg
ZAIK/RRZK
University of Cologne
Robert-Koch-Str. 10                    Tel.:   +49-221/478-7024
D-50931 Koeln                          E-Mail: [EMAIL PROTECTED]
Germany

Reply via email to